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

Function makeTempDirectoryScoped

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

Source from the content-addressed store, hash-verified

118const remove = removeFactory("remove")
119
120const makeTempDirectoryScoped: FileSystem.FileSystem["makeTempDirectoryScoped"] = (options) =>
121 Effect.acquireRelease(
122 makeTempDirectoryFactory("makeTempDirectoryScoped")(options),
123 (directory) => Effect.orDie(removeFactory("makeTempDirectoryScoped")(directory, { recursive: true }))
124 )
125
126const openOptions = (flag: FileSystem.OpenFlag = "r", mode?: number): Deno.OpenOptions => {
127 const modeOption = mode === undefined ? {} : { mode }

Callers

nothing calls this directly

Calls 2

makeTempDirectoryFactoryFunction · 0.70
removeFactoryFunction · 0.70

Tested by

no test coverage detected