MCPcopy
hub / github.com/prisma/prisma / getFilesInDir

Function getFilesInDir

packages/internals/src/utils/fs-utils.ts:42–45  ·  view source on GitHub ↗
(dir: string, pattern = '**')

Source from the content-addressed store, hash-verified

40}
41
42export function getFilesInDir(dir: string, pattern = '**'): Promise<string[]> {
43 const normalizedDir = pathToPosix(path.join(dir, pattern))
44 return globby(normalizedDir, { onlyFiles: true, onlyDirectories: false })
45}
46
47/**
48 * Removes all empty directories in the given directory.

Callers

nothing calls this directly

Calls 1

pathToPosixFunction · 0.90

Tested by

no test coverage detected