Only create directories if they do not exist

This commit is contained in:
XiangRongLin 2021-01-11 07:57:11 +01:00
parent e82cb1efea
commit 63c237db41
1 changed files with 2 additions and 1 deletions

View File

@ -33,8 +33,9 @@ class RecordingDownloader extends Downloader {
file.delete(); file.delete();
} }
} }
} else {
Files.createDirectories(path);
} }
Files.createDirectories(path);
} }
@Override @Override