1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

uu_install: add 'removed file' message on overwriting file

This commit is contained in:
Niyaz Nigmatullin 2022-06-22 19:54:37 +03:00
parent c277e933c9
commit 5262c043f3

View file

@ -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
// on how best to approach the issue. (mv and ln, for example)
if to.exists() {
if b.verbose {
println!("removed {}", to.quote());
}
backup_path = backup_control::get_backup_path(b.backup_mode, to, &b.suffix);
if let Some(ref backup_path) = backup_path {
// TODO!!