rustix::fs

Function rename

Source
pub fn rename<P: Arg, Q: Arg>(old_path: P, new_path: Q) -> Result<()>
Available on crate feature fs only.
Expand description

rename(old_path, new_path)—Renames a file or directory.

§References