5 releases (3 breaking)

0.4.1 Jul 12, 2023
0.3.1 Jul 1, 2022
0.3.0 Jun 29, 2022
0.2.0 Jun 29, 2022
0.1.0 Jun 28, 2022

#24 in #ignore

26 downloads per month
Used in pathwalker

MIT license

14KB
244 lines

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")));

Dependencies

~0–670KB
~12K SLoC