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

Function makeTempFileFactory

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

Source from the content-addressed store, hash-verified

380}
381
382const makeTempFileFactory = (method: string): FileSystem.FileSystem["makeTempFile"] => (options) =>
383 tryPromise(method, options?.directory, () =>
384 Deno.makeTempFile({
385 ...(options?.directory === undefined ? {} : { dir: options.directory }),
386 ...(options?.prefix === undefined ? {} : { prefix: options.prefix }),
387 ...(options?.suffix === undefined ? {} : { suffix: options.suffix })
388 }))
389
390const makeTempFile = makeTempFileFactory("makeTempFile")
391

Callers 2

DenoFileSystem.tsFile · 0.70
makeTempFileScopedFunction · 0.70

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected