Function fs_err::rename

source ·
pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> Result<()>
Expand description

Rename a file or directory to a new name, replacing the original file if to already exists.

Wrapper for fs::rename.