file_manager: hidden folder bugfix

Since inotify supports hidden folders we shouldn't skip them when scanning for nodes.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-10-10 11:04:59 -04:00
parent c631bff0c9
commit 7f1c327f02
1 changed files with 0 additions and 2 deletions

View File

@ -756,8 +756,6 @@ class InotifyNode:
metadata_events: List[asyncio.Event] = []
visited_dirs.add((st.st_dev, st.st_ino))
for fname in os.listdir(dir_path):
if fname[0] == ".":
continue
item_path = os.path.join(dir_path, fname)
if os.path.isdir(item_path):
new_child = self.create_child_node(fname, False)