mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 20:45:29 +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 entry = entry?;
|
||||||
let path = entry.path();
|
let path = entry.path();
|
||||||
|
|
||||||
println!("Compressing '{}'.", utils::to_utf(path));
|
info!("Compressing '{}'.", utils::to_utf(path));
|
||||||
|
|
||||||
if path.is_dir() {
|
if path.is_dir() {
|
||||||
builder.append_dir(path, path)?;
|
builder.append_dir(path, path)?;
|
||||||
} else {
|
} else {
|
||||||
|
@ -90,6 +90,8 @@ where
|
|||||||
let entry = entry?;
|
let entry = entry?;
|
||||||
let path = entry.path();
|
let path = entry.path();
|
||||||
|
|
||||||
|
info!("Compressing '{}'.", utils::to_utf(path));
|
||||||
|
|
||||||
if path.is_dir() {
|
if path.is_dir() {
|
||||||
if dir_is_empty(path)? {
|
if dir_is_empty(path)? {
|
||||||
writer.add_directory(path.to_str().unwrap().to_owned(), options)?;
|
writer.add_directory(path.to_str().unwrap().to_owned(), options)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user