mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Do not exclude whole project dir when listing in case where project is places inside excluded dir (like /tmp or ~/tmp)
This commit is contained in:
parent
813c607440
commit
048863e039
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ export async function listFiles(dirPath: string, recursive: boolean, limit: numb
|
|||
"pkg",
|
||||
"Pods",
|
||||
".*", // '!**/.*' excludes hidden directories, while '!**/.*/**' excludes only their contents. This way we are at least aware of the existence of hidden directories.
|
||||
].map((dir) => `**/${dir}/**`)
|
||||
].map((dir) => `${dirPath}/**/${dir}/**`)
|
||||
|
||||
const options = {
|
||||
cwd: dirPath,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue