better temp dir fallback and logging

This commit is contained in:
zzz
2015-03-21 12:38:48 +00:00
parent 9c0aa0c271
commit a337185820

View File

@ -406,9 +406,11 @@ public class I2PAppContext {
} else if (_tmpDir.mkdir()) { } else if (_tmpDir.mkdir()) {
_tmpDir.deleteOnExit(); _tmpDir.deleteOnExit();
} else { } else {
System.err.println("Could not create temp dir " + _tmpDir.getAbsolutePath()); System.err.println("WARNING: Could not create temp dir " + _tmpDir.getAbsolutePath());
_tmpDir = new SecureDirectory(_routerDir, "tmp"); _tmpDir = new SecureDirectory(_routerDir, "tmp");
_tmpDir.mkdir(); _tmpDir.mkdirs();
if (!_tmpDir.exists())
System.err.println("ERROR: Could not create temp dir " + _tmpDir.getAbsolutePath());
} }
} }
} }