MCPcopy
hub / github.com/prisma/prisma / getNestedFoldersInDir

Function getNestedFoldersInDir

packages/internals/src/utils/fs-utils.ts:37–40  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

35 * Retrieve any folder nested into the given directory, at any level of depth.
36 */
37export function getNestedFoldersInDir(dir: string): Promise<string[]> {
38 const normalizedDir = pathToPosix(path.join(dir, '**'))
39 return globby(normalizedDir, { onlyFiles: false, onlyDirectories: true })
40}
41
42export function getFilesInDir(dir: string, pattern = '**'): Promise<string[]> {
43 const normalizedDir = pathToPosix(path.join(dir, pattern))

Callers

nothing calls this directly

Calls 1

pathToPosixFunction · 0.90

Tested by

no test coverage detected