storage_common_copy

Function storage_common_copy 

Source
pub unsafe extern "C" fn storage_common_copy(
    storage: *mut Storage,
    old_path: *const c_char,
    new_path: *const c_char,
) -> FS_Error
Expand description

Copy the file to a new location.

The file must NOT be open at the time of calling this function.

§Arguments

  • storage - pointer to a storage API instance.
  • old_path - pointer to a zero-terminated string containing the source path.
  • new_path - pointer to a zero-terminated string containing the destination path.

§Returns

FSE_OK if the file has been successfully copied, any other error code on failure.