INNER CODE UNIT · TypeScript
exographProjects
exograph/exograph · error-report-testing/src/index.ts:29
function exographProjects(startPath: string): string[] {
let results: string[] = [];
function searchDirectories(currentPath: string) {
const filesAndDirs = fs.readdirSync(currentPath);
for (const fileOrDir of filesAndDirs) {
const fullPath = path.join(currentPath, fileOrDir);
const stat = fs.statSync(fullPath);
if (stat.isDirectory()) {
if (isExographProject(fullPath)) {
results.push(fullPath);
}
searchDirectories(fullPath);
}
}
}