mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
If current package folder is null don't delete (#870)
This commit is contained in:
committed by
Sergey Akhalkov
parent
41c0c88665
commit
bb0e206149
@@ -55,6 +55,10 @@ public class FileUtils {
|
||||
}
|
||||
|
||||
public static void deleteDirectoryAtPath(String directoryPath) {
|
||||
if (directoryPath == null) {
|
||||
CodePushUtils.log("deleteDirectoryAtPath attempted with null directoryPath");
|
||||
return;
|
||||
}
|
||||
File file = new File(directoryPath);
|
||||
if (file.exists()) {
|
||||
deleteFileOrFolderSilently(file);
|
||||
|
||||
Reference in New Issue
Block a user