Crate pathfilter
source ·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
- A filter that matches paths based on their extension.
- A filter that matches paths based on their extension. Supports multiple extensions.
Enums
- An enum that represents different types of filters for ignoring paths.
Traits
- Provides an interface ignoring paths.