fix cache folder not removed

This commit is contained in:
DNx5 2015-09-20 22:55:44 +07:00
parent 4b67cf961c
commit 5247b5aa2c

View File

@ -209,7 +209,7 @@ public class JsonCache {
} catch (Exception | Error e) { } catch (Exception | Error e) {
path = player.getName().toLowerCase(); path = player.getName().toLowerCase();
} }
File file = new File(cacheDir, path + File.separator + "cache.json"); File file = new File(cacheDir, path);
if (file.exists()) { if (file.exists()) {
Utils.purgeDirectory(file); Utils.purgeDirectory(file);
if (!file.delete()) { if (!file.delete()) {