diff options
| author | 2009-07-29 11:23:08 +0200 | |
|---|---|---|
| committer | 2009-07-29 11:23:08 +0200 | |
| commit | 73deab1a633ddc2a3ca3c5943622c2a5854677bf (patch) | |
| tree | 074afa6f5818c720e7188b088fc53c8663706604 /src | |
| parent | bcf67a0cfa12fabd49bb719ce960dfdcf74a1487 (diff) | |
| download | libimobiledevice-73deab1a633ddc2a3ca3c5943622c2a5854677bf.tar.gz libimobiledevice-73deab1a633ddc2a3ca3c5943622c2a5854677bf.tar.bz2 | |
Add handling of afc_remove_path's unknown error code which is an ENOTEMPTY
Diffstat (limited to 'src')
| -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)  	if (response)  		free(response); +	/* special case; unknown error actually means directory not empty */ +	if (ret == AFC_E_UNKNOWN_ERROR) +		ret = AFC_E_DIR_NOT_EMPTY; +  	afc_unlock(client);  	return ret; | 
