MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _resolved_root

Function _resolved_root

graphify/detect.py:2212–2221  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

2210
2211
2212def _resolved_root(root: Path) -> Path:
2213 key = str(root)
2214 got = _RESOLVED_ROOT_CACHE.get(key)
2215 if got is None:
2216 try:
2217 got = root.resolve()
2218 except (OSError, RuntimeError):
2219 got = root
2220 _RESOLVED_ROOT_CACHE[key] = got
2221 return got
2222
2223
2224def detect(root: Path, *, follow_symlinks: bool | None = None, google_workspace: bool | None = None, extra_excludes: list[str] | None = None, cache_root: Path | None = None, gitignore: bool = True) -> dict:

Callers 1

_resolves_under_rootFunction · 0.85

Calls 2

getMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected