Fixed #212 Autosave should create folders
This commit is contained in:
parent
d2122c74ab
commit
eeeca89f1e
1 changed files with 9 additions and 0 deletions
|
@ -408,6 +408,15 @@ public class JumpSequencer extends AbstractSequencer {
|
|||
return;
|
||||
}
|
||||
|
||||
File file = new File(WarpDriveConfig.G_SCHEMALOCATION + "/auto");
|
||||
if (!file.exists() || !file.isDirectory()) {
|
||||
if (!file.mkdirs()) {
|
||||
WarpDrive.logger.warn("Unable to create auto-backup folder, skipping...");
|
||||
LocalProfiler.stop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
// Generate unique file name
|
||||
SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd_HH'h'mm'm'ss's'SSS");
|
||||
|
|
Loading…
Add table
Reference in a new issue