discard when the path is invalid utf8 symbol.
This commit is contained in:
parent
f7de09415c
commit
8f3eecc369
@ -222,7 +222,7 @@ impl NotifyActor {
|
|||||||
let depth = entry.depth();
|
let depth = entry.depth();
|
||||||
let is_dir = entry.file_type().is_dir();
|
let is_dir = entry.file_type().is_dir();
|
||||||
let is_file = entry.file_type().is_file();
|
let is_file = entry.file_type().is_file();
|
||||||
let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
|
let abs_path = AbsPathBuf::try_from(entry.into_path()).ok()?;
|
||||||
if depth < 2 && is_dir {
|
if depth < 2 && is_dir {
|
||||||
self.send(make_message(abs_path.clone()));
|
self.send(make_message(abs_path.clone()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user