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

Function makeDirectory

packages/platform/deno/src/DenoFileSystem.ts:83–88  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

81 tryPromise("link", existingPath, () => Deno.link(existingPath, newPath))
82
83const makeDirectory: FileSystem.FileSystem["makeDirectory"] = (path, options) =>
84 tryPromise("makeDirectory", path, () =>
85 Deno.mkdir(path, {
86 recursive: options?.recursive ?? false,
87 ...(options?.mode === undefined ? {} : { mode: options.mode })
88 }))
89
90const makeTempDirectoryFactory = (method: string): FileSystem.FileSystem["makeTempDirectory"] => (options) =>
91 tryPromise(method, options?.directory, () =>

Callers 2

NodeFileSystem.tsFile · 0.50
makeTempFileFactoryFunction · 0.50

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected