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

Function ensureStorageDir

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

* Ensure the storage directory exists.

()

Source from the content-addressed store, hash-verified

80 * Ensure the storage directory exists.
81 */
82async function ensureStorageDir(): Promise<void> {
83 await fs.mkdir(getYjsStorageDir(), { recursive: true })
84}
85
86function expectedTaskMetaId(id: string): string | null {
87 return id.startsWith("code:task:") ? id.slice("code:task:".length) : null

Callers 2

writeMigratedDocFunction · 0.85
handleSaveFunction · 0.85

Calls 1

getYjsStorageDirFunction · 0.85

Tested by

no test coverage detected