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

Function makeDirectory

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

Source from the content-addressed store, hash-verified

89 tryPromise("link", existingPath, () => Deno.link(existingPath, newPath))
90
91const makeDirectory: FileSystem.FileSystem["makeDirectory"] = (path, options) =>
92 tryPromise("makeDirectory", path, () =>
93 Deno.mkdir(path, {
94 recursive: options?.recursive ?? false,
95 ...(options?.mode === undefined ? {} : { mode: options.mode })
96 }))
97
98const makeTempDirectoryFactory = (method: string): FileSystem.FileSystem["makeTempDirectory"] => (options) =>
99 tryPromise(method, options?.directory, () =>

Callers 2

NodeFileSystem.tsFile · 0.50
makeTempFileFactoryFunction · 0.50

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected