MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _strip_path_value

Function _strip_path_value

src/codegraphcontext/server.py:72–76  ·  view source on GitHub ↗

Strip /workspace/ prefix from a single string value.

(value)

Source from the content-addressed store, hash-verified

70
71
72def _strip_path_value(value):
73 """Strip /workspace/ prefix from a single string value."""
74 if isinstance(value, str) and value.startswith(WORKSPACE_PREFIX):
75 return value[len(WORKSPACE_PREFIX):]
76 return value
77
78
79def _strip_workspace_prefix(obj):

Callers 1

_strip_workspace_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected