mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
uu_install: add 'removed file' message on overwriting file
This commit is contained in:
parent
c277e933c9
commit
5262c043f3
1 changed files with 3 additions and 0 deletions
|
@ -585,6 +585,9 @@ fn copy(from: &Path, to: &Path, b: &Behavior) -> UResult<()> {
|
||||||
// The codes actually making use of the backup process don't seem to agree
|
// The codes actually making use of the backup process don't seem to agree
|
||||||
// on how best to approach the issue. (mv and ln, for example)
|
// on how best to approach the issue. (mv and ln, for example)
|
||||||
if to.exists() {
|
if to.exists() {
|
||||||
|
if b.verbose {
|
||||||
|
println!("removed {}", to.quote());
|
||||||
|
}
|
||||||
backup_path = backup_control::get_backup_path(b.backup_mode, to, &b.suffix);
|
backup_path = backup_control::get_backup_path(b.backup_mode, to, &b.suffix);
|
||||||
if let Some(ref backup_path) = backup_path {
|
if let Some(ref backup_path) = backup_path {
|
||||||
// TODO!!
|
// TODO!!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue