Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. def readdir(self, path, fh):
  2. dirents = ['.', '..']
  3. full_path = self._full_path(path)
  4. # print("listing " + full_path)
  5. if os.path.isdir(full_path):
  6. dirents.extend(os.listdir(full_path))
  7. if self.fallbackPath not in full_path:
  8. full_path = self._full_path(path, useFallBack=True)
  9. # print("listing_ext " + full_path)
  10. if os.path.isdir(full_path):
  11. dirents.extend(os.listdir(full_path))
  12. for r in list(set(dirents)):
  13. yield r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement