MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _load

Method _load

scripts/fetch_updates.py:415–422  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

413 self.data = self._load()
414
415 def _load(self) -> dict:
416 if self.path.exists():
417 try:
418 with open(self.path, "r", encoding="utf-8") as f:
419 return json.load(f)
420 except Exception:
421 pass
422 return {"documents": {}, "last_updated": None}
423
424 def save(self):
425 self.path.parent.mkdir(parents=True, exist_ok=True)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected