MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / isMountedPath

Function isMountedPath

scripts/static-server.mjs:430–436  ·  view source on GitHub ↗
(urlPath, basePath)

Source from the content-addressed store, hash-verified

428}
429
430function isMountedPath(urlPath, basePath) {
431 return (
432 basePath === "/" ||
433 urlPath === basePath ||
434 urlPath.startsWith(`${basePath}/`)
435 );
436}
437
438function stripBasePathFromUrl(rawUrl, basePath) {
439 if (basePath === "/") return rawUrl;

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected