From 19e26b2dbdade3d9811ee5380cd6dd17b8a12c0c Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 22 Apr 2022 02:50:22 +0200 Subject: [PATCH] Main: Canonicalize paths before sorting --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5e07d05..6f6ec64 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ fn run() -> Result<()> { for directory in directories_with_hashed_files { for file in directory.read_dir()? { let file = file?; - let path = file.path(); + let path = file.path().canonicalize()?; hashed_files.push(path); }