Skip to content

Commit 048863e

Browse files
committed
Do not exclude whole project dir when listing in case where project is places inside excluded dir (like /tmp or ~/tmp)
1 parent 813c607 commit 048863e

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)