diff --git a/src/main/java/io/qdrant/client/QdrantClient.java b/src/main/java/io/qdrant/client/QdrantClient.java index bee2054e..7e776ef7 100644 --- a/src/main/java/io/qdrant/client/QdrantClient.java +++ b/src/main/java/io/qdrant/client/QdrantClient.java @@ -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");