mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-18 01:36:11 +08:00
bugfix
This commit is contained in:
@@ -61,7 +61,7 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
|
||||
removeDirectory(f);
|
||||
}
|
||||
}
|
||||
if (!file.delete()) {
|
||||
if (file.exists() && !file.delete()) {
|
||||
throw new IOException("Failed to delete directory");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user