diff --git a/src/archive/tar.rs b/src/archive/tar.rs index 38f6c2f..a5fa6f0 100644 --- a/src/archive/tar.rs +++ b/src/archive/tar.rs @@ -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 { diff --git a/src/archive/zip.rs b/src/archive/zip.rs index ba43f73..3225777 100644 --- a/src/archive/zip.rs +++ b/src/archive/zip.rs @@ -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)?;