mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] File not exist
This commit is contained in:
parent
99af83fb06
commit
a83f225933
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue