mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
PollWatcher sometimes reports directories with new/deleted files
This commit is contained in:
parent
35c1b5fe24
commit
1cc4d92345
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user