storage_common_remove

Function storage_common_remove 

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

Remove a file or a directory.

The directory must be empty. The file or the directory must NOT be open.

§Arguments

  • storage - pointer to a storage API instance.
  • path - pointer to a zero-terminated string containing the path of the item to be removed.

§Returns

FSE_OK if the file or directory has been successfully removed, any other error code on failure.