Create backup directory if needed
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user