From a16c7715501b9e11cdbe3251e0cf2f0a9a71a74b Mon Sep 17 00:00:00 2001 From: hungcs Date: Tue, 19 Jul 2022 12:12:26 -0700 Subject: [PATCH] Pass kwargs through pipe_file() --- fsspec/.DS_Store | Bin 0 -> 6148 bytes fsspec/spec.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 fsspec/.DS_Store diff --git a/fsspec/.DS_Store b/fsspec/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8771af7179819df960d758df59f1a5b261bb22bc GIT binary patch literal 6148 zcmeHKOHRW;4E2N}1+kz@ma{C(yKxz0$35nFQ&q0t_aty{2*Lxg OKLU{kGseK5GVlSUC0)J% literal 0 HcmV?d00001 diff --git a/fsspec/spec.py b/fsspec/spec.py index fe33c3616..82e62a790 100644 --- a/fsspec/spec.py +++ b/fsspec/spec.py @@ -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):