Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def readdir(self, path, fh):
- dirents = ['.', '..']
- full_path = self._full_path(path)
- # print("listing " + full_path)
- if os.path.isdir(full_path):
- dirents.extend(os.listdir(full_path))
- if self.fallbackPath not in full_path:
- full_path = self._full_path(path, useFallBack=True)
- # print("listing_ext " + full_path)
- if os.path.isdir(full_path):
- dirents.extend(os.listdir(full_path))
- for r in list(set(dirents)):
- yield r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement