1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
tdzl2003 2016-04-05 22:42:16 +08:00
parent c05d742864
commit f9dd87f6c0

View File

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