Expand description
An interface for and collection of filters for ignoring files and directories.
This library provides a simple interface for creating and using filters. Filters are used to ignore files and directories.
§Examples
use std::path::Path;
use pathfilter::ExtensionFilter;
use pathfilter::IgnorePath;
let filter = ExtensionFilter::new(".rs");
assert!(filter.ignore(Path::new("src/lib.rs")));
Structs§
- Extension
Filter - A filter that matches paths based on their extension.
- Extensions
Filter - A filter that matches paths based on their extension. Supports multiple extensions.
Enums§
- Path
Filter - An enum that represents different types of filters for ignoring paths.
Traits§
- Ignore
Path - Provides an interface ignoring paths.