pub fn read_directory(
dir: &Path,
limits: &PackageLimits,
) -> Result<BTreeMap<String, Vec<u8>>, String>Expand description
Read a package directory, enforcing the file-count, size and path limits before reading any content. Symbolic links and special files are refused.