Function holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::tokio::fs::rename
source · pub async fn rename(
from: impl AsRef<Path>,
to: impl AsRef<Path>
) -> impl Future<Output = Result<(), Error>>
Expand description
Renames a file or directory to a new name, replacing the original file if
to
already exists.
This will not work if the new name is on a different mount point.
This is an async version of std::fs::rename