arceos_api::fs

Function ax_rename

Source
pub fn ax_rename(old: &str, new: &str) -> AxResult
Available on crate feature fs only.
Expand description

Rename a file or directory to a new name.

It will delete the original file if old already exists.