diff options
author | Akshay <[email protected]> | 2021-11-04 14:32:21 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-11-04 14:32:21 +0000 |
commit | 2939957c48558afc7530a5fc40695f73a6c75f4e (patch) | |
tree | ee80b12af3b45e6d08daf288bbcebfbcf8142248 | |
parent | 9ac0957e2836446c2fda5d8f8ff7f869fd5860bd (diff) |
fix globs not ignore files correctly
-rw-r--r-- | bin/src/dirs.rs | 6 |
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 | } |