[go: up one dir, main page]

rename

Function rename 

Source
pub async fn rename(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()>
Available on crate feature tokio only.
Expand description

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

Wrapper for tokio::fs::rename.