MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getContainerPath

Function getContainerPath

packages/cli/src/utils/sandbox.ts:24–34  ·  view source on GitHub ↗
(hostPath: string)

Source from the content-addressed store, hash-verified

22const execAsync = promisify(exec);
23
24function getContainerPath(hostPath: string): string {
25 if (os.platform() !== 'win32') {
26 return hostPath;
27 }
28 const withForwardSlashes = hostPath.replace(/\\/g, '/');
29 const match = withForwardSlashes.match(/^([A-Z]):\/(.*)/i);
30 if (match) {
31 return `/${match[1].toLowerCase()}/${match[2]}`;
32 }
33 return hostPath;
34}
35
36const LOCAL_DEV_SANDBOX_IMAGE_NAME = 'anus-cli-sandbox';
37const SANDBOX_NETWORK_NAME = 'anus-cli-sandbox';

Callers 2

entrypointFunction · 0.85
start_sandboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected