storage_simply_remove

Function storage_simply_remove 

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

Remove a file or a directory.

The following conditions must be met:

  • 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 item path.

§Returns

true on success or if the item does not exist, false otherwise.