From 90deadb396d48c572ee4f15df6297bcaf64d522b Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 28 Dec 2020 08:58:09 -0800 Subject: [PATCH] Avoid creating "..tmp" files --- download-utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-utils/src/lib.rs b/download-utils/src/lib.rs index 04f47e51c6..1eeacfddcd 100644 --- a/download-utils/src/lib.rs +++ b/download-utils/src/lib.rs @@ -35,7 +35,7 @@ pub fn download_file( fs::create_dir_all(destination_file.parent().unwrap()).map_err(|err| err.to_string())?; - let temp_destination_file = destination_file.with_extension(".tmp"); + let temp_destination_file = destination_file.with_extension("tmp"); let progress_bar = new_spinner_progress_bar(); if use_progress_bar {