MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / _path

Function _path

mitmproxy/addons/save.py:26–30  ·  view source on GitHub ↗

Extract the path from a path spec (which may have an extra "+" at the front)

(path: str)

Source from the content-addressed store, hash-verified

24
25@lru_cache
26def _path(path: str) -> str:
27 """Extract the path from a path spec (which may have an extra "+" at the front)"""
28 if path.startswith("+"):
29 path = path[1:]
30 return os.path.expanduser(path)
31
32
33@lru_cache

Callers 2

saveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…