MCPcopy Create free account
hub / github.com/vercel/examples / _sh_quote

Function _sh_quote

python/vibe-coding-ide/backend/src/api/sandbox.py:113–114  ·  view source on GitHub ↗
(p: str)

Source from the content-addressed store, hash-verified

111 if touched_paths:
112 # quote paths safely and touch them
113 def _sh_quote(p: str) -> str:
114 return "'" + p.replace("'", "'\"'\"'") + "'"
115 quoted = " ".join(_sh_quote(p) for p in touched_paths)
116 base_cwd = sandbox.sandbox.cwd
117 touch_cmd = await sandbox.run_command_detached(

Callers 1

sync_existing_sandboxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected