pub fn rename<From: AsRef<Path>, To: AsRef<Path>>(
from: From,
to: To,
) -> Result<()>Expand description
Renames a file or directory to a new name, replacing the original file if
to already exists.
ยงErrors
May return any of the same errors as std::fs::rename