Browse Source

Merge pull request #573 from Szpadel/fix-listing-exclude

Do not exclude whole project dir when listing in case where project i…
Matt Rubens 11 months ago
parent
commit
85775ce0a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/services/glob/list-files.ts

+ 1 - 1
src/services/glob/list-files.ts

@@ -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,