mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 01:57:53 +01:00
Create standalone directory, if needed, during storage startup
This commit is contained in:
parent
e1af7ad952
commit
716635c20e
@ -326,6 +326,10 @@ public class MySQLMapStorage extends MapStorage {
|
||||
cfgfile.delete(); // Zap file (in case we left junk from last time)
|
||||
return true;
|
||||
}
|
||||
// During initial startup, this can happen before baseStandaloneDir is setup
|
||||
if (!baseStandaloneDir.exists()) {
|
||||
baseStandaloneDir.mkdirs();
|
||||
}
|
||||
FileWriter fw = null;
|
||||
try {
|
||||
fw = new FileWriter(cfgfile);
|
||||
|
@ -313,6 +313,10 @@ public class PostgreSQLMapStorage extends MapStorage {
|
||||
cfgfile.delete(); // Zap file (in case we left junk from last time)
|
||||
return true;
|
||||
}
|
||||
// During initial startup, this can happen before baseStandaloneDir is setup
|
||||
if (!baseStandaloneDir.exists()) {
|
||||
baseStandaloneDir.mkdirs();
|
||||
}
|
||||
FileWriter fw = null;
|
||||
try {
|
||||
fw = new FileWriter(cfgfile);
|
||||
|
Loading…
Reference in New Issue
Block a user