Skip to content

Commit 85775ce

Browse files
authored
Merge pull request RooCodeInc#573 from Szpadel/fix-listing-exclude
Do not exclude whole project dir when listing in case where project i…
2 parents f4734de + 048863e commit 85775ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/glob/list-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function listFiles(dirPath: string, recursive: boolean, limit: numb
3434
"pkg",
3535
"Pods",
3636
".*", // '!**/.*' excludes hidden directories, while '!**/.*/**' excludes only their contents. This way we are at least aware of the existence of hidden directories.
37-
].map((dir) => `**/${dir}/**`)
37+
].map((dir) => `${dirPath}/**/${dir}/**`)
3838

3939
const options = {
4040
cwd: dirPath,

0 commit comments

Comments
 (0)