src/bin/pxar.rs - extract: print archive name with --verbose flag

This commit is contained in:
Dietmar Maurer 2019-07-19 07:01:57 +02:00
parent bbd4365c61
commit 40a13369a3
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ fn extract_archive(
let mut reader = stdin.lock();
extract_archive_from_reader(&mut reader, target, feature_flags, verbose, pattern)?;
} else {
if verbose { println!("PXAR extract: {}", archive); }
let file = std::fs::File::open(archive)?;
let mut reader = std::io::BufReader::new(file);
extract_archive_from_reader(&mut reader, target, feature_flags, verbose, pattern)?;