fix output format style for examples/extract.rs
This commit is contained in:
parent
de8e31660b
commit
36146f0f2a
1 changed files with 3 additions and 3 deletions
|
@ -25,15 +25,15 @@ fn real_main() -> i32 {
|
||||||
{
|
{
|
||||||
let comment = file.comment();
|
let comment = file.comment();
|
||||||
if !comment.is_empty() {
|
if !comment.is_empty() {
|
||||||
println!("${} comment: {}", i, comment);
|
println!("File {} comment: {}", i, comment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (&*file.name()).ends_with('/') {
|
if (&*file.name()).ends_with('/') {
|
||||||
println!("${}-> {}", i, outpath.as_path().display());
|
println!("Dir {} extracted to \"{}\"", i, outpath.as_path().display());
|
||||||
fs::create_dir_all(&outpath).unwrap();
|
fs::create_dir_all(&outpath).unwrap();
|
||||||
} else {
|
} else {
|
||||||
println!("${}-> {}: {}", i, outpath.as_path().display(), file.size());
|
println!("File {} extracted to \"{}\" ({} bytes)", i, outpath.as_path().display(), file.size());
|
||||||
if let Some(p) = outpath.parent() {
|
if let Some(p) = outpath.parent() {
|
||||||
if !p.exists() {
|
if !p.exists() {
|
||||||
fs::create_dir_all(&p).unwrap();
|
fs::create_dir_all(&p).unwrap();
|
||||||
|
|
Loading…
Add table
Reference in a new issue