in scripts/dashboard-importer/src/dashboards/cli.ts [69:81]
async function convertAllDashboardsInDirectory(
filePath: string,
report: DashboardsConversionReport,
): Promise<DashboardConversionResult[]> {
const files = fs.readdirSync(filePath);
const jsonFileNames = files.filter((fileName) => fileName.endsWith('.json'));
const results: DashboardConversionResult[] = [];
for (const jsonFileName of jsonFileNames) {
results.push(await convertSingleDashboard(filePath, jsonFileName, report));
}
return results;
}