Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit b20d56f

Browse files
author
Richard Hua
committed
Do not attempt to remove a directory before its children have been deleted
1 parent baf8234 commit b20d56f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

android/app/src/main/java/com/microsoft/codepush/react/FileUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ public static void deleteFileOrFolderSilently(File file) {
8686
if (fileEntry.isDirectory()) {
8787
deleteFileOrFolderSilently(fileEntry);
8888
} else {
89-
if (!file.delete()) {
90-
fileEntry.delete();
91-
}
89+
fileEntry.delete();
9290
}
9391
}
9492
}

0 commit comments

Comments
 (0)