mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 12:35:41 +00:00
Re-add "Compressing" output to Tar and make Tar and Zip compression use the info
macro
This commit is contained in:
parent
22f57e634f
commit
a739b5a482
@ -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 {
|
||||
|
@ -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)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user