MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _read_md

Function _read_md

openkb/lint.py:130–135  ·  view source on GitHub ↗

Read a Markdown file safely, returning empty string on error.

(path: Path)

Source from the content-addressed store, hash-verified

128
129
130def _read_md(path: Path) -> str:
131 """Read a Markdown file safely, returning empty string on error."""
132 try:
133 return path.read_text(encoding="utf-8")
134 except OSError:
135 return ""
136
137
138def _all_wiki_pages(wiki: Path) -> dict[str, Path]:

Callers 5

fix_broken_linksFunction · 0.85
find_broken_linksFunction · 0.85
find_orphansFunction · 0.85
check_index_syncFunction · 0.85
_load_wiki_pagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected