From 1cc4d92345c0cba94f1edd92c854e9c26a00f544 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Wed, 26 Oct 2016 10:57:43 -0400 Subject: [PATCH] PollWatcher sometimes reports directories with new/deleted files --- src/notification_filter.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/notification_filter.rs b/src/notification_filter.rs index dd915f3a..de4eb128 100644 --- a/src/notification_filter.rs +++ b/src/notification_filter.rs @@ -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);