[−][src]Function wasi::path_rename
pub unsafe fn path_rename(
fd: Fd,
old_path: &str,
new_fd: Fd,
new_path: &str
) -> Result<()>
Rename a file or directory.
Note: This is similar to renameat
in POSIX.
Parameters
old_path
- The source path of the file or directory to rename.new_fd
- The working directory at which the resolution of the new path starts.new_path
- The destination path to which to rename the file or directory.