Go to file
Wolfgang Bumiller e2255d72d1 Add MatchEntry::parse_pattern
This is a convenience helper to parse an entry with possible
inversion via a leading exclamation mark and interpreting
trailing slashes to mean `MatchFlag::MATCH_DIRECTORY` and
create a `Pattern` from the string with those characters
stripped off.

This also changes the way `MatchFlag`s are passed to a
builder pattern for convenience.

Also: impl std::ops::Not for MatchType.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-28 13:25:16 +02:00
src Add MatchEntry::parse_pattern 2020-04-28 13:25:16 +02:00
.gitignore initial import 2020-04-27 12:46:59 +02:00
Cargo.toml initial import 2020-04-27 12:46:59 +02:00