diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2023-12-23 18:49:38 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2023-12-23 21:12:48 +0100 |
commit | 2e1858ca519fd2a6fbf4839a23abcf17588dcc32 (patch) | |
tree | 2ab45e65481b661b2059337fb4d6204a019a801e /src/traverse.rs | |
parent | 3804a1f8e70e1f64977d1fcac20d6541aa5956d7 (diff) |
use `gix-glob` for matching; support for matching dirs only.
That way, git-like globs can be used which support nice extras, like
searching for directories only.
Diffstat (limited to 'src/traverse.rs')
-rw-r--r-- | src/traverse.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/traverse.rs b/src/traverse.rs index b2c8724..c6026b1 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -22,6 +22,7 @@ pub struct EntryData { pub entry_count: Option<u64>, /// If set, the item meta-data could not be obtained pub metadata_io_error: bool, + pub is_dir: bool, } impl Default for EntryData { @@ -32,6 +33,7 @@ impl Default for EntryData { mtime: UNIX_EPOCH, entry_count: None, metadata_io_error: bool::default(), + is_dir: false, } } } @@ -191,6 +193,7 @@ impl Traversal { } } else { data.entry_count = Some(0); + data.is_dir = true; } match m.modified() { |