Skip to content

Commit

Permalink
fix: set default acl to private for r2 compatibility (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanussbaum authored Aug 14, 2023
1 parent 214d3bb commit 39125f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions s3fs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def _open(
path,
mode="rb",
block_size=None,
acl="",
acl="private",
version_id=None,
fill_cache=None,
cache_type=None,
Expand Down Expand Up @@ -858,7 +858,7 @@ async def _find(self, path, maxdepth=None, withdirs=None, detail=False, prefix="

find = sync_wrapper(_find)

async def _mkdir(self, path, acl="", create_parents=True, **kwargs):
async def _mkdir(self, path, acl="private", create_parents=True, **kwargs):
path = self._strip_protocol(path).rstrip("/")
if not path:
raise ValueError
Expand Down Expand Up @@ -2032,7 +2032,7 @@ def __init__(
path,
mode="rb",
block_size=5 * 2**20,
acl="",
acl="private",
version_id=None,
fill_cache=True,
s3_additional_kwargs=None,
Expand Down

0 comments on commit 39125f7

Please sign in to comment.