If current package folder is null don't delete (#870)

This commit is contained in:
Andrew Jack
2017-06-02 09:32:34 +01:00
committed by Sergey Akhalkov
parent 41c0c88665
commit bb0e206149

View File

@@ -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);