pub fn rename(
from: impl AsRef<Path>,
to: impl AsRef<Path>,
cap: &impl CapProvider<FsWrite>,
) -> Result<(), CapSecError>Expand description
Renames a file or directory.
Requires FsWrite permission.
Both source and destination paths are checked against the capability’s scope.