Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit a8e3379

Browse files
authored
overwrite file (#450) (#453)
1 parent 221fbda commit a8e3379

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sparsezoo/utils/download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ def combine_chunks_and_delete(self, download_path: str, progress_bar: tqdm) -> N
369369
sorted_chunk_files = list(sorted(chunk_files))
370370

371371
create_parent_dirs(self.download_path)
372-
373-
with open(self.download_path, "ab") as combined_file:
372+
with open(self.download_path, "wb") as combined_file:
374373
for file_path in sorted_chunk_files:
375374
chunk_path = os.path.join(chunk_directory, file_path)
376375
with open(chunk_path, "rb") as infile:

0 commit comments

Comments
 (0)