feat(dry-run): print type of file to remove
This commit is contained in:
parent
7ec6467b3b
commit
d033b9d29a
|
@ -179,7 +179,12 @@ impl Runner {
|
||||||
} else {
|
} else {
|
||||||
if args.dry_run {
|
if args.dry_run {
|
||||||
Box::new(|path| {
|
Box::new(|path| {
|
||||||
log::info!("(dry-run) would remove {}", path.display());
|
let ty = if path.is_symlink() {
|
||||||
|
"symlink"
|
||||||
|
} else {
|
||||||
|
"regular file"
|
||||||
|
};
|
||||||
|
log::info!("(dry-run) would remove {} {}", ty, path.display());
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue