mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 17:18:30 +01:00
PollWatcher sometimes reports directories with new/deleted files
This commit is contained in:
parent
35c1b5fe24
commit
1cc4d92345
1 changed files with 0 additions and 7 deletions
|
@ -69,13 +69,6 @@ impl NotificationFilter {
|
||||||
pub fn is_excluded(&self, path: &Path) -> bool {
|
pub fn is_excluded(&self, path: &Path) -> bool {
|
||||||
let path_as_str = path.to_str().unwrap();
|
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 {
|
for pattern in &self.ignores {
|
||||||
if pattern.matches(path_as_str) {
|
if pattern.matches(path_as_str) {
|
||||||
debug!("Ignoring {:?}: matched ignore filter", path);
|
debug!("Ignoring {:?}: matched ignore filter", path);
|
||||||
|
|
Loading…
Reference in a new issue