MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / _strip_path_value

Function _strip_path_value

src/codegraphcontext/server.py:59–63  ·  view source on GitHub ↗

Strip /workspace/ prefix from a single string value.

(value)

Source from the content-addressed store, hash-verified

57
58
59def _strip_path_value(value):
60 """Strip /workspace/ prefix from a single string value."""
61 if isinstance(value, str) and value.startswith(WORKSPACE_PREFIX):
62 return value[len(WORKSPACE_PREFIX):]
63 return value
64
65
66def _strip_workspace_prefix(obj):

Callers 1

_strip_workspace_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected