pub fn path_rename<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
old_fd: Fd,
old_path: WasmPtr<u8, M>,
old_path_len: M::Offset,
new_fd: Fd,
new_path: WasmPtr<u8, M>,
new_path_len: M::Offset,
) -> Result<Errno, WasiError>Expand description
ยงpath_rename()
Rename a file or directory Inputs:
Fd old_fdThe base directory forold_pathconst char* old_pathPointer to UTF8 bytes, the file to be renamedu32 old_path_lenThe number of bytes to read fromold_pathFd new_fdThe base directory fornew_pathconst char* new_pathPointer to UTF8 bytes, the new file nameu32 new_path_lenThe number of bytes to read fromnew_path