We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6078db1 commit b317244Copy full SHA for b317244
src/main/java/io/qdrant/client/QdrantClient.java
@@ -1374,7 +1374,7 @@ public void downloadSnapshot(
1374
if (response.getStatusLine().getStatusCode() == 200) {
1375
HttpEntity entity = response.getEntity();
1376
if (entity != null) {
1377
- Files.write(outPath, EntityUtils.toByteArray(entity), StandardOpenOption.WRITE);
+ Files.write(outPath, EntityUtils.toByteArray(entity), StandardOpenOption.CREATE_NEW);
1378
System.out.println("Downloaded successfully");
1379
} else {
1380
System.err.println("No response body");
0 commit comments