aboutsummaryrefslogtreecommitdiff
path: root/bin/src/dirs.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-11-04 14:32:21 +0000
committerAkshay <[email protected]>2021-11-04 14:32:21 +0000
commit2939957c48558afc7530a5fc40695f73a6c75f4e (patch)
treeee80b12af3b45e6d08daf288bbcebfbcf8142248 /bin/src/dirs.rs
parent9ac0957e2836446c2fda5d8f8ff7f869fd5860bd (diff)
fix globs not ignore files correctly
Diffstat (limited to 'bin/src/dirs.rs')
-rw-r--r--bin/src/dirs.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/src/dirs.rs b/bin/src/dirs.rs
index d3fe612..682ce97 100644
--- a/bin/src/dirs.rs
+++ b/bin/src/dirs.rs
@@ -54,7 +54,11 @@ impl Iterator for Walker {
54 if path.is_dir() { 54 if path.is_dir() {
55 self.dirs.push(path); 55 self.dirs.push(path);
56 } else if path.is_file() { 56 } else if path.is_file() {
57 self.files.push(path); 57 if let Match::None | Match::Whitelist(_) =
58 self.ignore.matched(&path, false)
59 {
60 self.files.push(path);
61 }
58 } 62 }
59 } 63 }
60 } 64 }