From 24a745abffd0b4b54dd953a229099102d039bf11 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Sat, 28 Oct 2023 19:49:21 +0200 Subject: [PATCH] typo --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b386e4c..5874bcc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -242,7 +242,7 @@ fn update_dir( misc::human_readable_bytes(total_download_size(&files_to_download, remote_dir)) ); for file in files_to_download { - let file_name = &file.name.replace(&format!("{}/", remote_dir), "/"); + let file_name = &file.name.replace(&remote_dir_pre, ""); let file_path = dir.join(file_name); println!( "[{}] {} ({})",