public static void backup(Path targetPath, int revision, Consumer<BackupException> callback) throws BackupException {
List<IBackupProvider> providers = getBackupProviders();
try {
- if (!Files.exists(targetPath))
- Files.createDirectories(targetPath);
+ Files.createDirectories(targetPath);
Backups.lock(providers);
new Thread(() -> {
boolean unlockedAlready = false;