Commit be7b34bb by rfkelly0

MountFS: fix listdir when mounts are stacked

parent 0ffdf940
......@@ -182,6 +182,16 @@ class MountFS(FS):
absolute=False,
dirs_only=dirs_only,
files_only=files_only)
for nm in self.mount_tree.names(path):
if nm not in paths:
if dirs_only:
if self.isdir(pathjoin(path,nm)):
paths.append(nm)
elif files_only:
if self.isfile(pathjoin(path,nm)):
paths.append(nm)
else:
paths.append(nm)
if full or absolute:
if full:
path = relpath(normpath(path))
......
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