PollWatcher sometimes reports directories with new/deleted files

This commit is contained in:
Matt Green 2016-10-26 10:57:43 -04:00
parent 35c1b5fe24
commit 1cc4d92345
1 changed files with 0 additions and 7 deletions

View File

@ -69,13 +69,6 @@ impl NotificationFilter {
pub fn is_excluded(&self, path: &Path) -> bool {
let path_as_str = path.to_str().unwrap();
if let Ok(metadata) = path.metadata() {
if metadata.is_dir() {
debug!("Ignoring {:?}: is a directory", path);
return true;
}
}
for pattern in &self.ignores {
if pattern.matches(path_as_str) {
debug!("Ignoring {:?}: matched ignore filter", path);