MCPcopy Create free account
hub / github.com/Effect-TS/effect / removeFactory

Function removeFactory

packages/platform/node-shared/src/NodeFileSystem.ts:167–178  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

165// == remove
166
167const removeFactory = (method: string): FileSystem.FileSystem["remove"] => {
168 const nodeRm = effectify(
169 NFS.rm,
170 handleErrnoException("FileSystem", method),
171 handleBadArgument(method)
172 )
173 return (path, options) =>
174 nodeRm(
175 path,
176 { recursive: options?.recursive ?? false, force: options?.force ?? false }
177 )
178}
179const remove = removeFactory("remove")
180
181// == makeTempDirectoryScoped

Callers 1

NodeFileSystem.tsFile · 0.70

Calls 2

handleErrnoExceptionFunction · 0.90
handleBadArgumentFunction · 0.85

Tested by

no test coverage detected