mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 16:49:07 +00:00
GameLogger Create Dir If Doesn't Exist (#628)
This commit is contained in:
@@ -95,6 +95,8 @@ public class GameLogger {
|
|||||||
|
|
||||||
if (!log.exists()) {
|
if (!log.exists()) {
|
||||||
try {
|
try {
|
||||||
|
if(!log.getParentFile().exists())
|
||||||
|
log.getParentFile().mkdirs();
|
||||||
log.createNewFile();
|
log.createNewFile();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user