MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / mkdirp

Function mkdirp

packages/@contentlayer/utils/src/node/fs.ts:128–134  ·  view source on GitHub ↗
(dirPath: T)

Source from the content-addressed store, hash-verified

126 )
127
128const mkdirp = <T extends string>(dirPath: T): T.Effect<OT.HasTracer, MkdirError, void> =>
129 OT.withSpan('mkdirp', { attributes: { dirPath } })(
130 T.tryCatchPromise(
131 () => fs.mkdir(dirPath, { recursive: true }),
132 (error) => new MkdirError({ dirPath, error }),
133 ),
134 )
135
136function rm(path: string, params: { force: true; recursive?: boolean }): T.Effect<OT.HasTracer, RmError, void>
137function rm(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…