mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Fix typo
This commit is contained in:
parent
ff8dbf3322
commit
bb0b06231c
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ pub fn ok_or_not_found(result: io::Result<()>) -> io::Result<()> {
|
|||
pub async fn are_paths_equal(old: impl AsRef<Path>, new: impl AsRef<Path>) -> bool {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
match (fs::metadata(old).await, fs::metadata(new).await) {
|
||||
match (fs::symlink_metadata(old).await, fs::symlink_metadata(new).await) {
|
||||
(Ok(old), Ok(new)) => old.dev() == new.dev() && old.ino() == new.ino(),
|
||||
_ => false,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue