Skip to content

Add **kwargs to cat_file, mirroring pipe_file. #944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion s3fs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ async def _touch(self, path, truncate=True, data=None, **kwargs):

touch = sync_wrapper(_touch)

async def _cat_file(self, path, version_id=None, start=None, end=None):
async def _cat_file(self, path, version_id=None, start=None, end=None, **kwargs):
bucket, key, vers = self.split_path(path)
if start is not None or end is not None:
head = {"Range": await self._process_limits(path, start, end)}
Expand All @@ -1151,6 +1151,7 @@ async def _call_and_read():
**version_id_kw(version_id or vers),
**head,
**self.req_kw,
**kwargs,
)
try:
return await resp["Body"].read()
Expand Down