diff options
| author | 2014-10-02 16:15:48 +0200 | |
|---|---|---|
| committer | 2014-10-02 16:15:48 +0200 | |
| commit | 4a9f1c098cdc0e96ceac5bc3bbf6566cad32d7bd (patch) | |
| tree | b0a124bbb2af20bb51f7c05bf25e3094572adf1b /include | |
| parent | 3b1e983a519d0b4d820109e953d62bebd181c47c (diff) | |
| download | libimobiledevice-4a9f1c098cdc0e96ceac5bc3bbf6566cad32d7bd.tar.gz libimobiledevice-4a9f1c098cdc0e96ceac5bc3bbf6566cad32d7bd.tar.bz2 | |
afc: Implement afc_remove_path_and_contents() for recursive deletion
Only available on iOS 6 and later.
Diffstat (limited to 'include')
| -rw-r--r-- | include/libimobiledevice/afc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libimobiledevice/afc.h b/include/libimobiledevice/afc.h index 667fd63..b045554 100644 --- a/include/libimobiledevice/afc.h +++ b/include/libimobiledevice/afc.h | |||
| @@ -338,6 +338,18 @@ afc_error_t afc_make_link(afc_client_t client, afc_link_type_t linktype, const c | |||
| 338 | */ | 338 | */ |
| 339 | afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mtime); | 339 | afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mtime); |
| 340 | 340 | ||
| 341 | /** | ||
| 342 | * Deletes a file or directory including possible contents. | ||
| 343 | * | ||
| 344 | * @param client The client to use. | ||
| 345 | * @param path The path to delete. (must be a fully-qualified path) | ||
| 346 | * @since libimobiledevice 1.1.7 | ||
| 347 | * @note Only available in iOS 6 and later. | ||
| 348 | * | ||
| 349 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | ||
| 350 | */ | ||
| 351 | afc_error_t afc_remove_path_and_contents(afc_client_t client, const char *path); | ||
| 352 | |||
| 341 | /* Helper functions */ | 353 | /* Helper functions */ |
| 342 | 354 | ||
| 343 | /** | 355 | /** |
