trim + fixes
This commit is contained in:
@ -76,7 +76,7 @@ fn hardcopy(
|
||||
})?;
|
||||
} else if metadata.file_type().is_symlink() {
|
||||
let symlink_value = fs::read_link(source)?;
|
||||
fs::remove_file(destination)?;
|
||||
if destination.exists() { fs::remove_file(destination)? }
|
||||
unix::fs::symlink(symlink_value, destination)?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user