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

Function mkdirp

packages/@contentlayer/utils/src/fs-in-memory.ts:126–132  ·  view source on GitHub ↗
(dirPath: T)

Source from the content-addressed store, hash-verified

124 )
125
126export const mkdirp = <T extends string>(dirPath: T): T.Effect<OT.HasTracer, MkdirError, void> =>
127 OT.withSpan('mkdirp', { attributes: { dirPath } })(
128 T.tryCatch(
129 () => fs.mkdirpSync(dirPath),
130 (error) => new MkdirError({ dirPath, error }),
131 ),
132 )
133
134export function rm(path: string, params: { force: true; recursive?: boolean }): T.Effect<OT.HasTracer, RmError, void>
135export function 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…