only show filename in pb
This commit is contained in:
parent
806118862f
commit
9a6b7b531a
@ -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())))?;
|
||||
|
Loading…
Reference in New Issue
Block a user