Skip to content

Commit 202fc25

Browse files
committed
added getfile to multi and mount
1 parent 3a06301 commit 202fc25

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

fs/mountfs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ def getbytes(self, path):
159159
fs, _path = self._delegate(path)
160160
return fs.getbytes(_path)
161161

162+
def getfile(self, path, file, chunk_size=None, **options):
163+
fs, _path = self._delegate(path)
164+
return fs.getfile(_path, file, chunk_size=chunk_size, **options)
165+
162166
def gettext(self, path, encoding=None, errors=None, newline=None):
163167
self.check()
164168
fs, _path = self._delegate(path)

fs/multifs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ def getbytes(self, path):
259259
raise errors.ResourceNotFound(path)
260260
return fs.getbytes(path)
261261

262+
def getfile(self, path, file, chunk_size=None, **options):
263+
fs = self._delegate_required(path)
264+
return fs.getfile(path, file, chunk_size=chunk_size, **options)
265+
262266
def gettext(self, path, encoding=None, errors=None, newline=''):
263267
self.check()
264268
fs = self._delegate_required(path)

0 commit comments

Comments
 (0)