mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
8eb2eea5cc
commit
656482d7a4
1 changed files with 2 additions and 2 deletions
|
|
@ -110,12 +110,12 @@ impl Watcher {
|
|||
continue;
|
||||
};
|
||||
|
||||
let realpath = if file.is_link() {
|
||||
let real = if file.is_link() {
|
||||
symlink_realpath_with(&url, &mut cached).await
|
||||
} else {
|
||||
fs::canonicalize(&url).await.map(Cow::Owned)
|
||||
};
|
||||
if !realpath.is_ok_and(|p| p == *url) {
|
||||
if !real.is_ok_and(|p| p == *url) {
|
||||
FilesOp::Deleting(parent, vec![url]).emit();
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue