Skip to content

Commit 3ccdf7d

Browse files
committed
remove() before rename() breaks atomicity of renaming operation
1 parent dc90a20 commit 3ccdf7d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎zarr/storage.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,6 @@ def __setitem__(self, key, value):
770770
f.write(value)
771771

772772
# move temporary file into place
773-
if os.path.exists(file_path):
774-
os.remove(file_path)
775773
os.rename(temp_path, file_path)
776774

777775
finally:

0 commit comments

Comments
 (0)