Skip to content

Commit 910557c

Browse files
committed
fix directory case
1 parent 49305f0 commit 910557c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/seclab_taskflows/mcp_servers/local_file_viewer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def _list_files(database_path, root_dir = None, recursive=True):
8181
dirname = remove_root_dir(entry.filename)
8282
if Path(dirname).parent == Path(root_dir):
8383
results.append(dirname)
84+
continue
8485
filename = remove_root_dir(entry.filename)
8586
if root_dir and not is_subdirectory(root_dir, filename):
8687
continue

0 commit comments

Comments
 (0)