1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* don't delete cache/temp folders because deleting the temp folder would later crash ImageIO if java.io.tmpdir doesn't exist

This commit is contained in:
Reinhard Pointner 2012-08-11 14:23:16 +00:00
parent 03c31459a4
commit 1ab5c7d75d

View File

@ -97,7 +97,9 @@ public class Main {
System.out.println("Reset preferences and clear cache");
for (File cache : getApplicationFolder().listFiles(FOLDERS)) {
if (matches("cache|temp|grape", cache.getName())) {
delete(cache);
for (File it : cache.listFiles()) {
delete(it);
}
}
}
Settings.forPackage(Main.class).clear();