mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix:can't rewatch a directory that has been deleted once before (#1313)
Fix minor errors
This commit is contained in:
parent
4a0522640d
commit
1fd452f6b6
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ impl Watcher {
|
|||
(old.difference(new).cloned().collect(), new.difference(old).cloned().collect())
|
||||
};
|
||||
|
||||
to_unwatch.retain(|u| watcher.unwatch(u).is_ok());
|
||||
to_unwatch.retain(|u| watcher.unwatch(u).is_ok() || !u.exists());
|
||||
to_watch.retain(|u| watcher.watch(u, RecursiveMode::NonRecursive).is_ok());
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue