You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llms/extensions/computer/filesystem.py
+37-6Lines changed: 37 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -406,7 +406,7 @@ def directory_tree(
406
406
) ->str:
407
407
"""
408
408
Get a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories.
409
-
Files have no children array, while directories always have a children array (which may be empty).
409
+
Files have no children array, while directories always have a children array (which may be empty). Respects any .gitignore rules from the root directory together with any exclude_patterns.
410
410
The output is formatted with 2-space indentation for readability. Only works within allowed directories.
0 commit comments