Skip to content

Commit b317244

Browse files
authored
feat: download snapshots (#5)
1 parent 6078db1 commit b317244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/qdrant/client/QdrantClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ public void downloadSnapshot(
13741374
if (response.getStatusLine().getStatusCode() == 200) {
13751375
HttpEntity entity = response.getEntity();
13761376
if (entity != null) {
1377-
Files.write(outPath, EntityUtils.toByteArray(entity), StandardOpenOption.WRITE);
1377+
Files.write(outPath, EntityUtils.toByteArray(entity), StandardOpenOption.CREATE_NEW);
13781378
System.out.println("Downloaded successfully");
13791379
} else {
13801380
System.err.println("No response body");

0 commit comments

Comments
 (0)