Commit 95c71b15 by rfkelly0

make SubFS use keyword arguments in calls to listdir(), to allow new keywords to…

make SubFS use keyword arguments in calls to listdir(), to allow new keywords to be added in FS subclasses
parent 054f8fa6
...@@ -719,11 +719,11 @@ class SubFS(FS): ...@@ -719,11 +719,11 @@ class SubFS(FS):
def listdir(self, path="./", wildcard=None, full=False, absolute=False, dirs_only=False, files_only=False): def listdir(self, path="./", wildcard=None, full=False, absolute=False, dirs_only=False, files_only=False):
paths = self.parent.listdir(self._delegate(path), paths = self.parent.listdir(self._delegate(path),
wildcard, wildcard=wildcard,
False, full=False,
False, absolute=False,
dirs_only, dirs_only=dirs_only,
files_only) files_only=files_only)
if absolute: if absolute:
listpath = normpath(path) listpath = normpath(path)
paths = [abspath(pathjoin(listpath, path)) for path in paths] paths = [abspath(pathjoin(listpath, path)) for path in paths]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment