pub async fn rename(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()>
Renames from to to, replacing to if it is a file.
from
to