fix globs not ignore files correctly

This commit is contained in:
Akshay 2021-11-04 20:02:21 +05:30
parent 9ac0957e28
commit 2939957c48

View File

@ -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);
}
}
}
}