Function root_dir_common_filter

fn root_dir_common_filter(path: &std::path::Path) -> bool

Common filters when finding the root directory of a Zip archive.

This filter is a sensible default for most use cases and filters out common system files that are usually irrelevant to the contents of the archive.

Currently, the filter ignores:

This function is not guaranteed to be stable and may change in future versions.

Example

# use std::path::Path;
assert!(zip::read::root_dir_common_filter(Path::new("foo.txt")));
assert!(!zip::read::root_dir_common_filter(Path::new(".DS_Store")));
assert!(!zip::read::root_dir_common_filter(Path::new("Thumbs.db")));
assert!(!zip::read::root_dir_common_filter(Path::new("__MACOSX")));
assert!(!zip::read::root_dir_common_filter(Path::new("__MACOSX/foo.txt")));