Skip to content

Commit

Permalink
* device deployment: hotfix -- AFC_E_OBJECT_NOT_FOUND if directory do…
Browse files Browse the repository at this point in the history
…esn't exist (#738)
  • Loading branch information
dkimitsa authored Jul 21, 2023
1 parent 465d656 commit 38442d7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ public void removePath(String path, boolean recurse) {
* @param path the fully-qualified path to delete.
*/
public void removePathAndContent(String path) {
checkResult(LibIMobileDevice.afc_remove_path_and_contents(getRef(), path));
AfcError result = LibIMobileDevice.afc_remove_path_and_contents(getRef(), path);
if (result != AfcError.AFC_E_SUCCESS && result != AfcError.AFC_E_OBJECT_NOT_FOUND) {
throw new LibIMobileDeviceException(result.swigValue(), result.name());
}
}

/**
Expand Down

0 comments on commit 38442d7

Please sign in to comment.