storage_common_migrate

Function storage_common_migrate 

Source
pub unsafe extern "C" fn storage_common_migrate(
    storage: *mut Storage,
    source: *const c_char,
    dest: *const c_char,
) -> FS_Error
Expand description

Move the contents of source folder to destination one and rename all conflicting files.

Source folder will be deleted if the migration was successful.

§Arguments

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

§Returns

FSE_OK if the migration was successfully completed, any other error code on failure.