Skip to content
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

Pass kwargs through pipe_file() #993

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
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
Binary file added fsspec/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion fsspec/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def cat_file(self, path, start=None, end=None, **kwargs):

def pipe_file(self, path, value, **kwargs):
"""Set the bytes of given file"""
with self.open(path, "wb") as f:
with self.open(path, "wb", **kwargs) as f:
f.write(value)

def pipe(self, path, value=None, **kwargs):
Expand Down