Re-add "Compressing" output to Tar and make Tar and Zip compression use the info macro

This commit is contained in:
Vinícius Rodrigues Miguel 2021-10-07 11:36:54 -03:00
parent 22f57e634f
commit a739b5a482
2 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,8 @@ where
let entry = entry?;
let path = entry.path();
println!("Compressing '{}'.", utils::to_utf(path));
info!("Compressing '{}'.", utils::to_utf(path));
if path.is_dir() {
builder.append_dir(path, path)?;
} else {

View File

@ -90,6 +90,8 @@ where
let entry = entry?;
let path = entry.path();
info!("Compressing '{}'.", utils::to_utf(path));
if path.is_dir() {
if dir_is_empty(path)? {
writer.add_directory(path.to_str().unwrap().to_owned(), options)?;