INNER CODE UNIT · TypeScript
file
tim-koehler/Helm-Intellisense · src/Commands/LintChartCommand.ts:38
file = dir + sep + file;
const stat = fs.statSync(file);
if (stat && stat.isDirectory()) {
/* Recurse into a subdirectory */
results = results.concat(walkDirectory(file));
} else {
/* Is a file */
if (file.endsWith('.yaml') || file.endsWith('.yml')) {
results.push(file);
}
}
});
return results;
}