[FIX] File not exist

This commit is contained in:
Gravita 2023-10-30 19:29:12 +07:00
parent 99af83fb06
commit a83f225933

View file

@ -147,6 +147,11 @@ public CompletableFuture<Void> getFuture() {
}
public CompletableFuture<Void> downloadFile(URI uri, Path path) {
try {
IOHelper.createParentDirs(path);
} catch (IOException e) {
return CompletableFuture.failedFuture(e);
}
return client.sendAsync(HttpRequest.newBuilder()
.GET()
.uri(uri)