Skip to content

Commit

Permalink
feat: download snapshots (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 authored Dec 9, 2023
1 parent 6078db1 commit b317244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/qdrant/client/QdrantClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ public void downloadSnapshot(
if (response.getStatusLine().getStatusCode() == 200) {
HttpEntity entity = response.getEntity();
if (entity != null) {
Files.write(outPath, EntityUtils.toByteArray(entity), StandardOpenOption.WRITE);
Files.write(outPath, EntityUtils.toByteArray(entity), StandardOpenOption.CREATE_NEW);
System.out.println("Downloaded successfully");
} else {
System.err.println("No response body");
Expand Down

0 comments on commit b317244

Please sign in to comment.