Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.