From 656482d7a485d94e553b8517fd6e667a4814e10b Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 13 Jun 2024 20:37:44 +0800 Subject: [PATCH] .. --- yazi-core/src/manager/watcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yazi-core/src/manager/watcher.rs b/yazi-core/src/manager/watcher.rs index 7eab05a3..79305d40 100644 --- a/yazi-core/src/manager/watcher.rs +++ b/yazi-core/src/manager/watcher.rs @@ -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; }