mirror of
https://github.com/nerdypepper/statix.git
synced 2024-09-11 13:45:32 +03:00
fix globs not ignore files correctly
This commit is contained in:
parent
9ac0957e28
commit
2939957c48
@ -54,7 +54,11 @@ impl Iterator for Walker {
|
||||
if path.is_dir() {
|
||||
self.dirs.push(path);
|
||||
} else if path.is_file() {
|
||||
self.files.push(path);
|
||||
if let Match::None | Match::Whitelist(_) =
|
||||
self.ignore.matched(&path, false)
|
||||
{
|
||||
self.files.push(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user