aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/vfs-notify/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/vfs-notify/src/lib.rs b/crates/vfs-notify/src/lib.rs
index 5b4978285..2e60fe23b 100644
--- a/crates/vfs-notify/src/lib.rs
+++ b/crates/vfs-notify/src/lib.rs
@@ -199,7 +199,7 @@ impl LoaderActor {
199 let is_dir = entry.file_type().is_dir(); 199 let is_dir = entry.file_type().is_dir();
200 let is_file = entry.file_type().is_file(); 200 let is_file = entry.file_type().is_file();
201 let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap(); 201 let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
202 if is_dir { 202 if is_dir && watch {
203 self.watch(abs_path.clone()); 203 self.watch(abs_path.clone());
204 } 204 }
205 let rel_path = abs_path.strip_prefix(&path)?; 205 let rel_path = abs_path.strip_prefix(&path)?;