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

Function makeTempFileScoped

packages/platform/deno/src/DenoFileSystem.ts:349–353  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

347const makeTempFile = makeTempFileFactory("makeTempFile")
348
349const makeTempFileScoped: FileSystem.FileSystem["makeTempFileScoped"] = (options) =>
350 Effect.acquireRelease(
351 makeTempFileFactory("makeTempFileScoped")(options),
352 (file) => Effect.orDie(removeFactory("makeTempFileScoped")(file, { force: true }))
353 )
354
355const readDirectory: FileSystem.FileSystem["readDirectory"] = (path, options) => {
356 if (options?.recursive) {

Callers

nothing calls this directly

Calls 2

makeTempFileFactoryFunction · 0.70
removeFactoryFunction · 0.70

Tested by

no test coverage detected