pub fn rename(old: &str, new: &str) -> Result<()>Available on crate feature
fs only.Expand description
Rename a file or directory to a new name.
Delete the original file if old already exists.
This only works then the new path is in the same mounted fs.