MCPcopy
hub / github.com/prisma/prisma / allFiles

Function allFiles

packages/client-generator-ts/tests/generator.test.ts:331–342  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

329 generator.stop()
330
331 function allFiles(dir: string): string[] {
332 let results: string[] = []
333 for (const file of fs.readdirSync(dir)) {
334 const fullPath = path.join(dir, file)
335 if (fs.statSync(fullPath)?.isDirectory()) {
336 results = results.concat(allFiles(fullPath))
337 } else {
338 results.push(fullPath)
339 }
340 }
341 return results
342 }
343
344 // Check if the adapter property has been generated.
345 // The adapter property is now part of a union type, so it can be either required or optional (never)

Callers 1

generator.test.tsFile · 0.85

Calls 2

concatMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…