MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / ensureRoot

Function ensureRoot

projects/openade-module/src/nodeYjsStorage.ts:122–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 const docPath = (id: string) => path.join(rootDir, sanitizeId(id))
121 const legacyDocPath = (id: string) => legacyNestedRootDir ? path.join(legacyNestedRootDir, sanitizeId(id)) : null
122 const ensureRoot = () => fs.mkdir(rootDir, { recursive: true })
123
124 async function writeMigratedDoc(id: string, data: Uint8Array): Promise<void> {
125 await ensureRoot()

Callers 2

writeMigratedDocFunction · 0.85
saveUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected