We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e61ed7 commit 8d4ecc1Copy full SHA for 8d4ecc1
crates/vfs-notify/src/lib.rs
@@ -222,7 +222,7 @@ impl NotifyActor {
222
let depth = entry.depth();
223
let is_dir = entry.file_type().is_dir();
224
let is_file = entry.file_type().is_file();
225
- let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
+ let abs_path = AbsPathBuf::try_from(entry.into_path()).ok()?;
226
if depth < 2 && is_dir {
227
self.send(make_message(abs_path.clone()));
228
}
0 commit comments