Fix error prone code
This commit is contained in:
parent
8c1e55237c
commit
396815015f
|
@ -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()));
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue