MCPcopy Index your code
hub / github.com/Effect-TS/effect / removeFactory

Function removeFactory

packages/platform-node-shared/src/internal/fileSystem.ts:140–151  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

138// == remove
139
140const removeFactory = (method: string) => {
141 const nodeRm = effectify(
142 NFS.rm,
143 handleErrnoException("FileSystem", method),
144 handleBadArgument(method)
145 )
146 return (path: string, options?: FileSystem.RemoveOptions) =>
147 nodeRm(
148 path,
149 { recursive: options?.recursive ?? false, force: options?.force ?? false }
150 )
151}
152const remove = removeFactory("remove")
153
154// == makeTempDirectoryScoped

Callers 1

fileSystem.tsFile · 0.85

Calls 3

handleErrnoExceptionFunction · 0.85
handleBadArgumentFunction · 0.85
effectifyFunction · 0.50

Tested by

no test coverage detected