mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Limit top level list_files
This commit is contained in:
parent
dc2f3a5c28
commit
4d89468eb1
1 changed files with 3 additions and 1 deletions
|
|
@ -98,7 +98,9 @@ export async function listFiles(dirPath: string, recursive: boolean): Promise<st
|
|||
onlyFiles: false, // true by default, false means it will list directories on their own too
|
||||
}
|
||||
// * globs all files in one dir, ** globs files in nested directories
|
||||
const files = recursive ? await globbyLevelByLevel(options) : await globby("*", options)
|
||||
const files = recursive
|
||||
? await globbyLevelByLevel(options)
|
||||
: (await globby("*", options)).slice(0, LIST_FILES_LIMIT)
|
||||
return files
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue