Function wasmer_wasix::syscalls::wasi::path_rename::path_rename
source · 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_fd
The base directory forold_path
const char* old_path
Pointer to UTF8 bytes, the file to be renamedu32 old_path_len
The number of bytes to read fromold_path
Fd new_fd
The base directory fornew_path
const char* new_path
Pointer to UTF8 bytes, the new file nameu32 new_path_len
The number of bytes to read fromnew_path