Commit c3560e7f by willmcgugan

Made listdirinfo more robust

parent 78984c22
......@@ -325,9 +325,15 @@ class FS(object):
if not full or absolute:
return pathjoin(path, p)
return [(p, self.getinfo(get_path(p)))
for p in self._listdir_helper(path,
widcard=wildcard,
def getinfo(p):
try:
return self.getinfo(get_path(p))
except FSError:
return {}
return [(p, getinfo(get_path(p)))
for p in self.listdir(path,
wildcard=wildcard,
full=full,
absolute=absolute,
dirs_only=dirs_only,
......
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