diff options
| author | 2009-07-29 11:23:08 +0200 | |
|---|---|---|
| committer | 2009-07-29 19:12:37 -0700 | |
| commit | 4b8e5ac804896c821a867a378c17727c61ec0373 (patch) | |
| tree | 074afa6f5818c720e7188b088fc53c8663706604 /src/AFC.c | |
| parent | 4a5d3174ddc5a9596191176829f0b8ae1feae32b (diff) | |
| download | libimobiledevice-4b8e5ac804896c821a867a378c17727c61ec0373.tar.gz libimobiledevice-4b8e5ac804896c821a867a378c17727c61ec0373.tar.bz2 | |
Add handling of afc_remove_path's unknown error code which is an ENOTEMPTY
Diffstat (limited to 'src/AFC.c')
| -rw-r--r-- | src/AFC.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -500,6 +500,10 @@ afc_error_t afc_remove_path(afc_client_t client, const char *path) | |||
| 500 | if (response) | 500 | if (response) |
| 501 | free(response); | 501 | free(response); |
| 502 | 502 | ||
| 503 | /* special case; unknown error actually means directory not empty */ | ||
| 504 | if (ret == AFC_E_UNKNOWN_ERROR) | ||
| 505 | ret = AFC_E_DIR_NOT_EMPTY; | ||
| 506 | |||
| 503 | afc_unlock(client); | 507 | afc_unlock(client); |
| 504 | 508 | ||
| 505 | return ret; | 509 | return ret; |
