File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,34 @@ async function crawlRec(params: {
1111
1212 const recursiveCallResults : string [ ] [ ] = [ ] ;
1313
14+ /*
15+ for (const fileOrDirectoryBasename of await readdir(dirPath)) {
16+
17+ const fileOrDirectoryPath = pathJoin(dirPath, fileOrDirectoryBasename);
18+
19+ if ((await lstat(fileOrDirectoryPath)).isDirectory()) {
20+ const dirPath = fileOrDirectoryPath;
21+
22+ if (!getDoCrawlInDir({ dirPath })) {
23+ continue;
24+ }
25+
26+ recursiveCallResults.push(
27+ await crawlRec({
28+ dirPath,
29+ getDoCrawlInDir
30+ })
31+ continue;
32+ );
33+ }
34+
35+ const filePath = fileOrDirectoryPath;
36+
37+ filePaths.push(filePath);
38+
39+ }
40+ */
41+
1442 await Promise . all (
1543 (
1644 await readdir ( dirPath )
@@ -30,6 +58,8 @@ async function crawlRec(params: {
3058 getDoCrawlInDir
3159 } )
3260 ) ;
61+
62+ return ;
3363 }
3464
3565 const filePath = fileOrDirectoryPath ;
You can’t perform that action at this time.
0 commit comments