pub fn rename(old: &str, new: &str) -> Result<()>
Renames a file.
Behavior on an open file is undefined at the OSAL level. Ensure the file is closed first.