From 1ab5c7d75d503f4196ed5ef9f32935c0493b6230 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 11 Aug 2012 14:23:16 +0000 Subject: [PATCH] * don't delete cache/temp folders because deleting the temp folder would later crash ImageIO if java.io.tmpdir doesn't exist --- source/net/sourceforge/filebot/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/Main.java b/source/net/sourceforge/filebot/Main.java index 0b410d65..e5455130 100644 --- a/source/net/sourceforge/filebot/Main.java +++ b/source/net/sourceforge/filebot/Main.java @@ -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();