storage_common_merge

Function storage_common_merge 

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

Copy the contents of one directory into another and rename all conflicting files.

§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 directories have been successfully merged, any other error code on failure.