aboutsummaryrefslogtreecommitdiff
path: root/bin/src/dirs.rs
diff options
context:
space:
mode:
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 }