MCPcopy Index your code
hub / github.com/httpie/cli / patharg

Function patharg

tests/fixtures/__init__.py:11–17  ·  view source on GitHub ↗

Back slashes need to be escaped in ITEM args, even in Windows paths.

(path)

Source from the content-addressed store, hash-verified

9
10
11def patharg(path):
12 """
13 Back slashes need to be escaped in ITEM args,
14 even in Windows paths.
15
16 """
17 return str(path).replace('\\', '\\\\\\')
18
19
20FIXTURES_ROOT = Path(__file__).parent

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected