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
view_range:tuple[int,int]=None, # Optional 1-indexed (start, end) line range for files, end=-1 for EOF. Do NOT use unless it's known that the file is too big to keep in context—simply view the WHOLE file when possible
67
-
nums:bool=False# Whether to show line numbers
69
+
nums:bool=False, # Whether to show line numbers
70
+
skip_folders:tuple[str,...]=('_proc','__pycache__') # Folder names to skip when listing directories
68
71
):
69
72
'View directory or file contents with optional line range and numbers'
70
73
try:
71
74
p=valid_path(path)
72
75
header=None
73
76
ifp.is_dir():
74
-
lines= [sforfinp.glob('**/*') if (s:=_fmt_path(f, p))]
77
+
lines= [sforfinp.glob('**/*') if (s:=_fmt_path(f, p, skip_folders))]
0 commit comments