MCPcopy Index your code
hub / github.com/simstudioai/sim / ensureContentDirs

Function ensureContentDirs

apps/sim/lib/blog/utils.ts:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5export const AUTHORS_DIR = path.join(process.cwd(), 'content', 'authors')
6
7export async function ensureContentDirs() {
8 await fs.mkdir(BLOG_DIR, { recursive: true })
9 await fs.mkdir(AUTHORS_DIR, { recursive: true })
10}
11
12export function toIsoDate(value: Date | string | number): string {
13 if (value instanceof Date) return value.toISOString()

Callers 2

loadAuthorsFunction · 0.90
scanFrontmattersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected