File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -165,28 +165,7 @@ def scan_directory(
165165 if is_file and query ["include_patterns" ]:
166166 if not should_include (item_path , base_path , include_patterns ):
167167 result ["ignore_content" ] = True
168- continue
169-
170- stats ["total_files" ] += 1
171- stats ["total_size" ] += file_size
172-
173- if stats ["total_files" ] > MAX_FILES :
174- print (f"Maximum file limit ({ MAX_FILES } ) reached" )
175- return result
176-
177- is_text = is_text_file (real_path )
178- content = read_file_content (real_path ) if is_text else "[Non-text file]"
179-
180- child = {
181- "name" : item ,
182- "type" : "file" ,
183- "size" : file_size ,
184- "content" : content ,
185- "path" : item_path ,
186- }
187- result ["children" ].append (child )
188- result ["size" ] += file_size
189- result ["file_count" ] += 1
168+ continue
190169
191170 elif os .path .isdir (real_path ):
192171 subdir = scan_directory (
You can’t perform that action at this time.
0 commit comments