pub fn read_directory(
dir: &Path,
limits: &PackageLimits,
) -> Result<PackageFiles, 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.