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