MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _safe_resolve

Function _safe_resolve

scripts/dashboard.py:2754–2764  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

2752
2753
2754def _safe_resolve(path: str) -> Optional[Path]:
2755 try:
2756 resolved = Path(path).expanduser().resolve()
2757 except Exception:
2758 return None
2759 if log_root_path:
2760 try:
2761 resolved.relative_to(log_root_path)
2762 except Exception:
2763 return None
2764 return resolved
2765
2766
2767def _log_kind(path: Path) -> str:

Callers 3

subscribeMethod · 0.85
get_stateFunction · 0.85
switch_logFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected