MCPcopy
hub / github.com/safishamsi/graphify / _ensure_storage

Function _ensure_storage

worked/example/raw/storage.py:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def _ensure_storage() -> None:
15 STORAGE_DIR.mkdir(exist_ok=True)
16 if not INDEX_FILE.exists():
17 INDEX_FILE.write_text(json.dumps({}))
18
19
20def load_index() -> dict:

Callers 6

load_indexFunction · 0.85
save_indexFunction · 0.85
save_parsedFunction · 0.85
save_processedFunction · 0.85
load_recordFunction · 0.85
delete_recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected