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

Function getDocPath

projects/electron/src/modules/code/yjsStorage.ts:71–73  ·  view source on GitHub ↗

* Get the full file path for a document ID.

(id: string)

Source from the content-addressed store, hash-verified

69 * Get the full file path for a document ID.
70 */
71function getDocPath(id: string): string {
72 return path.join(getYjsStorageDir(), sanitizeId(id))
73}
74
75function getLegacyNestedDocPath(id: string): string {
76 return path.join(getLegacyNestedYjsStorageDir(), sanitizeId(id))

Callers 3

handleSaveFunction · 0.85
handleLoadFunction · 0.85
handleDeleteFunction · 0.85

Calls 2

getYjsStorageDirFunction · 0.85
sanitizeIdFunction · 0.70

Tested by

no test coverage detected