Skip to content

Commit

Permalink
Merge pull request #212 from colobas/bugfix/s3-path
Browse files Browse the repository at this point in the history
Disable auto_mkdir when path begins with `s3`
  • Loading branch information
sbesson authored Jul 11, 2022
2 parents 6c24f13 + 1c1c53e commit 0f27726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ome_zarr/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def init_store(self, path: str, mode: str = "r") -> FSStore:
}

mkdir = True
if "r" in mode or path.startswith("http"):
if "r" in mode or path.startswith("http") or path.startswith("s3"):
# Could be simplified on the fsspec side
mkdir = False
if mkdir:
Expand Down

0 comments on commit 0f27726

Please sign in to comment.