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

Function _list_files

openkb/skill/workspace.py:126–130  ·  view source on GitHub ↗
(root: Path, subdir: str)

Source from the content-addressed store, hash-verified

124
125
126def _list_files(root: Path, subdir: str) -> set[str]:
127 base = root / subdir
128 if not base.is_dir():
129 return set()
130 return {str(p.relative_to(root)).replace("\\", "/") for p in base.rglob("*") if p.is_file()}
131
132
133def _line_count(path: Path) -> int:

Callers 1

write_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected