MCPcopy Create free account
hub / github.com/cloudflare/computer / parseMountPoint

Function parseMountPoint

packages/computerd/src/cli/computerd.ts:80–87  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

78}
79
80function parseMountPoint(value: string | undefined): string {
81 const mountPoint = value === undefined || value === "" ? DEFAULT_MOUNT_POINT : value;
82 if (!isAbsolute(mountPoint)) {
83 throw new Error(`MOUNT_POINT must be an absolute path, got ${JSON.stringify(value)}`);
84 }
85
86 return mountPoint;
87}
88
89function send(
90 response: ServerResponse,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected