MCPcopy
hub / github.com/prisma/prisma / removeFile

Function removeFile

packages/internals/src/utils/fs-functional.ts:20–21  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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 })))
22
23export const getNestedFoldersInDir =
24 (dir: string): T.Task<string[]> =>

Callers

nothing calls this directly

Calls 2

createTaggedSystemErrorFunction · 0.85
pipeFunction · 0.50

Tested by

no test coverage detected