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

Function makeTempFileFactory

packages/platform/deno/src/DenoFileSystem.ts:339–345  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

337}
338
339const makeTempFileFactory = (method: string): FileSystem.FileSystem["makeTempFile"] => (options) =>
340 tryPromise(method, options?.directory, () =>
341 Deno.makeTempFile({
342 ...(options?.directory === undefined ? {} : { dir: options.directory }),
343 ...(options?.prefix === undefined ? {} : { prefix: options.prefix }),
344 ...(options?.suffix === undefined ? {} : { suffix: options.suffix })
345 }))
346
347const makeTempFile = makeTempFileFactory("makeTempFile")
348

Callers 2

DenoFileSystem.tsFile · 0.70
makeTempFileScopedFunction · 0.70

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected