Fix error prone code

This commit is contained in:
Reinhard Pointner 2016-11-26 01:19:17 +08:00
parent 8c1e55237c
commit 396815015f
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ public enum ApplicationFolder {
AppData(System.getProperty("application.dir", UserHome.resolve(".filebot").getPath())),
Temp(System.getProperty("java.io.tmpdir")),
TemporaryFiles(System.getProperty("java.io.tmpdir")),
Cache(System.getProperty("application.cache", AppData.resolve("cache").getPath()));

View File

@ -108,8 +108,9 @@ public class Main {
initializeSystemProperties(args);
initializeLogging(args);
// make sure java.io.tmpdir exists
createFolders(ApplicationFolder.Temp.getFile());
// make sure that these folders exist
ApplicationFolder.TemporaryFiles.getFile().mkdirs();
ApplicationFolder.AppData.getFile().mkdirs();
// initialize this stuff before anything else
CacheManager.getInstance();

View File

@ -2,7 +2,6 @@ package net.filebot;
import static net.filebot.Logging.*;
import java.io.File;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;