diff --git a/src/http_async.rs b/src/http_async.rs index 63e30aa..510d039 100644 --- a/src/http_async.rs +++ b/src/http_async.rs @@ -31,7 +31,7 @@ pub async fn download_file( misc::cute_path(path), misc::human_readable_bytes(total_size) )); - pb.set_message(misc::cute_path(path)); + pb.set_message(format!("{}", path.file_name().unwrap().to_str().unwrap())); let mut file = File::create(path).or(Err(format!("Failed to create file '{}'", path.display())))?;