diff options
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; |
