pub fn rename<P: Arg, Q: Arg>(old_path: P, new_path: Q) -> Result<()>
fs
rename(old_path, new_path)—Renames a file or directory.
rename(old_path, new_path)