pub fn rename<P: AsRef<Path>, U: AsRef<Path>>(
old_fd: &File,
old_path: P,
new_fd: &File,
new_path: U
) -> Result<()>
🔬This is a nightly-only experimental API. (
wasi_ext
#71213)Available on WASI only.
Expand description
重命名文件或目录。
这对应于 path_rename
syscall。