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

Function getYjsStorageDir

projects/electron/src/modules/code/yjsStorage.ts:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20const YJS_DIR = "yjs"
21
22function getYjsStorageDir(): string {
23 if (process.env.OPENADE_YJS_STORAGE_DIR) return process.env.OPENADE_YJS_STORAGE_DIR
24 return path.join(os.homedir(), OPENADE_DIR, DATA_DIR, YJS_DIR)
25}
26
27function getLegacyNestedYjsStorageDir(): string {
28 return path.join(os.homedir(), OPENADE_DIR, OPENADE_DIR, DATA_DIR, YJS_DIR)

Callers 3

getDocPathFunction · 0.85
ensureStorageDirFunction · 0.85
handleListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected