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

Function get_fulltext_path

scripts/fetch_fulltext.py:243–250  ·  view source on GitHub ↗

Get the fulltext markdown file path for an entry.

(entry: dict)

Source from the content-addressed store, hash-verified

241
242
243def get_fulltext_path(entry: dict) -> Path:
244 """Get the fulltext markdown file path for an entry."""
245 fw = entry["_framework"]
246 tp = entry["_type"]
247 slug = entry.get("slug", "")
248 eid = entry.get("id", "")
249 filename = slug or re.sub(r'[^\w\-.]', '_', eid)
250 return KNOWLEDGE_ROOT / fw / tp / "fulltext" / f"{filename}.md"
251
252
253def fulltext_exists(entry: dict) -> bool:

Callers 2

fulltext_existsFunction · 0.70
process_entryFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected