Skip to content

Commit

Permalink
Update src/hdmf_zarr/backend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Nov 8, 2024
1 parent 91ab327 commit 0b72fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdmf_zarr/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def mode(self):
def open(self):
"""Open the Zarr file"""
if self.__file is None:
# Allow overwriting an exist file (e.g., and HDF5 file). Zarr will normally fail if the
# Allow overwriting an existing file (e.g., an HDF5 file). Zarr will normally fail if the
# existing object at the path is a file. So if we are in `w` mode we need to delete the file first
if self.mode == 'w' and self.__force_overwrite:
if isinstance(self.path, (str, Path)) and os.path.exists(self.path):
Expand Down

0 comments on commit 0b72fc3

Please sign in to comment.