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

Function makeTempDirectoryScoped

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

Source from the content-addressed store, hash-verified

110const remove = removeFactory("remove")
111
112const makeTempDirectoryScoped: FileSystem.FileSystem["makeTempDirectoryScoped"] = (options) =>
113 Effect.acquireRelease(
114 makeTempDirectoryFactory("makeTempDirectoryScoped")(options),
115 (directory) => Effect.orDie(removeFactory("makeTempDirectoryScoped")(directory, { recursive: true, force: true }))
116 )
117
118const openOptions = (flag: FileSystem.OpenFlag = "r", mode?: number): Deno.OpenOptions => {
119 const modeOption = mode === undefined ? {} : { mode }

Callers

nothing calls this directly

Calls 2

makeTempDirectoryFactoryFunction · 0.70
removeFactoryFunction · 0.70

Tested by

no test coverage detected