MCPcopy Index your code
hub / github.com/simstudioai/sim / listSqlFiles

Function listSqlFiles

scripts/check-migrations-safety.ts:420–429  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

418}
419
420async function listSqlFiles(dir: string): Promise<string[]> {
421 const out: string[] = []
422 const entries = await readdir(dir, { withFileTypes: true })
423 for (const e of entries) {
424 const full = path.join(dir, e.name)
425 if (e.isDirectory()) out.push(...(await listSqlFiles(full)))
426 else if (e.name.endsWith('.sql')) out.push(full)
427 }
428 return out
429}
430
431async function resolveFiles(argv: string[]): Promise<string[] | null> {
432 if (argv.includes('--all')) {

Callers 1

resolveFilesFunction · 0.85

Calls 2

joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected