From 5414213a196f64c5126df14c462bdc611c076f37 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Mon, 6 Nov 2023 01:56:26 +0100 Subject: [PATCH] fix existing file hashes always being calculated --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 166aa97..4fd5ea5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -227,6 +227,7 @@ async fn update_dir( "Checked".bright_blue(), misc::cute_path(&file_path) )); + hashes.insert(file_name.to_owned(), file.hash.to_lowercase()); } } else { files_to_download.push(file.clone());