MCPcopy Index your code
hub / github.com/coder/mux / quoteForContainer

Method quoteForContainer

src/node/runtime/DevcontainerRuntime.ts:190–195  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

188 }
189
190 private quoteForContainer(filePath: string): string {
191 if (filePath === "~" || filePath.startsWith("~/")) {
192 return expandTildeForSSH(filePath);
193 }
194 return shescape.quote(filePath);
195 }
196
197 /**
198 * Expand tilde in file paths for container operations.

Callers 5

readFileViaExecMethod · 0.95
writeFileViaExecMethod · 0.95
ensureDirViaExecMethod · 0.95
statViaExecMethod · 0.95
quoteForContainerFunction · 0.80

Calls 1

expandTildeForSSHFunction · 0.90

Tested by 1

quoteForContainerFunction · 0.64