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

Function makeTempFileScoped

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

Source from the content-addressed store, hash-verified

390const makeTempFile = makeTempFileFactory("makeTempFile")
391
392const makeTempFileScoped: FileSystem.FileSystem["makeTempFileScoped"] = (options) =>
393 Effect.acquireRelease(
394 makeTempFileFactory("makeTempFileScoped")(options),
395 (file) => Effect.orDie(removeFactory("makeTempFileScoped")(file, { force: true }))
396 )
397
398const readDirectory: FileSystem.FileSystem["readDirectory"] = (path, options) => {
399 if (options?.recursive) {

Callers

nothing calls this directly

Calls 2

makeTempFileFactoryFunction · 0.70
removeFactoryFunction · 0.70

Tested by

no test coverage detected