Create backup directory if needed
This commit is contained in:
parent
913d5d91dd
commit
f0a9fca952
@ -38,6 +38,9 @@ public class BackupManager extends TimerTask {
|
||||
*/
|
||||
public BackupManager(File backupDirectory) {
|
||||
this.backupDirectory = backupDirectory;
|
||||
if (!backupDirectory.exists()) {
|
||||
backupDirectory.mkdirs();
|
||||
}
|
||||
persist = new Persist(this);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user