MCPcopy Create free account
hub / github.com/cortexkit/magic-context / ensureDir

Function ensureDir

packages/cli/src/commands/setup-pi.ts:65–67  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

63};
64
65function ensureDir(path: string): void {
66 if (!existsSync(path)) mkdirSync(path, { recursive: true });
67}
68
69async function getDefaultPrompts(): Promise<PromptIO> {
70 const { promptIO } = await import("../lib/prompts");

Callers 2

writePiSettingsPackageFunction · 0.70
writeMagicContextConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected