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 for old_path
  • const char* old_path Pointer to UTF8 bytes, the file to be renamed
  • u32 old_path_len The number of bytes to read from old_path
  • Fd new_fd The base directory for new_path
  • const char* new_path Pointer to UTF8 bytes, the new file name
  • u32 new_path_len The number of bytes to read from new_path