MCPcopy Create free account
hub / github.com/anomalyco/opencode / makeDir

Function makeDir

packages/opencode/test/tool/apply_patch.test.ts:77–77  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

75const readText = (filepath: string) => Effect.promise(() => fs.readFile(filepath, "utf-8"))
76const writeText = (filepath: string, content: string) => Effect.promise(() => fs.writeFile(filepath, content, "utf-8"))
77const makeDir = (dir: string) => Effect.promise(() => fs.mkdir(dir, { recursive: true }))
78
79const expectFailure = <A, E, R>(effect: Effect.Effect<A, E, R>, message?: string) =>
80 Effect.gen(function* () {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected