Skip to main content

rename_no_replace

Function rename_no_replace 

Source
pub fn rename_no_replace(from: &Path, to: &Path) -> Result<()>
Expand description

Rename from to to, failing with AlreadyExists instead of replacing an existing to (a file, a folder, even an empty one, or a link, even a dangling one).