Create backup directory if needed

This commit is contained in:
Marc Baloup 2023-05-10 12:47:47 +02:00
parent 913d5d91dd
commit f0a9fca952

View File

@ -38,6 +38,9 @@ public class BackupManager extends TimerTask {
*/ */
public BackupManager(File backupDirectory) { public BackupManager(File backupDirectory) {
this.backupDirectory = backupDirectory; this.backupDirectory = backupDirectory;
if (!backupDirectory.exists()) {
backupDirectory.mkdirs();
}
persist = new Persist(this); persist = new Persist(this);