MCPcopy Create free account
hub / github.com/tiann/hapi / ensureDirectory

Function ensureDirectory

cli/src/runtime/assets.ts:11–13  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

9const RUNTIME_MARKER = '.runtime-version';
10
11function ensureDirectory(path: string): void {
12 mkdirSync(path, { recursive: true });
13}
14
15const bunRuntime = (globalThis as typeof globalThis & {
16 Bun?: { file: (source: string | URL) => { arrayBuffer: () => Promise<ArrayBuffer> } };

Callers 3

copyAssetFileFunction · 0.85
unpackToolsFunction · 0.85
ensureRuntimeAssetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected