Function fs_err::tokio::rename

source ยท
pub async fn rename(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()>
Expand description

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

Wrapper for tokio::fs::rename.