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

Function fulltext_exists

scripts/test_playwright_cmde.py:14–24  ·  view source on GitHub ↗
(entry: dict)

Source from the content-addressed store, hash-verified

12
13
14def fulltext_exists(entry: dict) -> bool:
15 slug = entry.get("slug", "")
16 eid = entry.get("id", "")
17 for name in [slug, re.sub(r'[^\w\-.]', '_', eid)] if eid else [slug]:
18 if not name:
19 continue
20 if (FULLTEXT_DIR / f"{name}.md").exists():
21 return True
22 if (FULLTEXT_DIR / f"{name}.zh.md").exists():
23 return True
24 return False
25
26
27def analyze():

Callers 1

analyzeFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected