Suspend the progress bar before printing the copied files.
@@ -1350,7 +1350,13 @@ fn copy_file(
}
if options.verbose {
+ if let Some(pb) = progress_bar {
+ pb.suspend(|| {
println!("{}", context_for(source, dest));
+ });
+ } else {
+ println!("{}", context_for(source, dest));
+ }
}
// Calculate the context upfront before canonicalizing the path
