MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / ensureFile

Function ensureFile

packages/mcp-server/src/shared.ts:70–73  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

68ensureDir(ASSET_DIR)
69
70export function ensureFile(filePath: string): void {
71 const fd = openSync(filePath, 'a')
72 closeSync(fd)
73}
74
75export const LOCK_PATH = join(RUNTIME_DIR, 'mcp.lock')
76export const HUB_LOCK_PATH = join(RUNTIME_DIR, 'hub.lock')

Callers 2

createAssetStoreFunction · 0.90
shared.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected