We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
walkDirectory
1 parent 7baf2d0 commit 3a292b0Copy full SHA for 3a292b0
1 file changed
extensions/ql-vscode/src/helpers.ts
@@ -568,13 +568,10 @@ export async function createTimestampFile(storagePath: string) {
568
*
569
* @return An iterator of the full path to all files recursively found in the directory.
570
*/
571
- export async function* walkDirectory(dir: string): AsyncIterableIterator<string> {
+export async function* walkDirectory(dir: string): AsyncIterableIterator<string> {
572
const seenFiles = new Set<string>();
573
for await (const d of await fs.opendir(dir)) {
574
const entry = path.join(dir, d.name);
575
- if (seenFiles.has(entry)) {
576
- continue;
577
- }
578
seenFiles.add(entry);
579
if (d.isDirectory()) {
580
yield* walkDirectory(entry);
0 commit comments