MCPcopy
hub / github.com/prisma/prisma / removeDir

Function removeDir

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

Source from the content-addressed store, hash-verified

15 TE.tryCatch(() => fsUtils.removeEmptyDirs(dir), createTaggedSystemError('fs-remove-empty-dirs', { dir }))
16
17export const removeDir = (dir: string) =>
18 pipe(TE.tryCatch(() => fs.rm(dir, { recursive: true }), createTaggedSystemError('fs-remove-dir', { dir })))
19
20export const removeFile = (filePath: string) =>
21 pipe(TE.tryCatch(() => fs.unlink(filePath), createTaggedSystemError('fs-remove-file', { filePath })))

Callers

nothing calls this directly

Calls 2

createTaggedSystemErrorFunction · 0.85
pipeFunction · 0.50

Tested by

no test coverage detected