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

Function docPath

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

Source from the content-addressed store, hash-verified

118export function createOpenADENodeYjsStorage(rootDir: string, options: OpenADENodeYjsStorageOptions = {}): OpenADENodeYjsStorage {
119 const legacyNestedRootDir = options.legacyNestedRootDir === undefined ? defaultLegacyNestedRootDir(rootDir) : options.legacyNestedRootDir
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

Callers 5

writeMigratedDocFunction · 0.85
readLegacyUpdateFunction · 0.85
readUpdateFunction · 0.85
saveUpdateFunction · 0.85
deleteDocumentFunction · 0.85

Calls 1

sanitizeIdFunction · 0.70

Tested by

no test coverage detected