fs_err::tokio

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.