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,9 +33,10 @@ class RecordingDownloader extends Downloader {
file.delete();
}
}
}
} else {
Files.createDirectories(path);
}
}
@Override
public Response execute(@Nonnull Request request) throws IOException, ReCaptchaException {