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

Function isMountedPath

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

Source from the content-addressed store, hash-verified

493}
494
495function isMountedPath(urlPath, basePath) {
496 return (
497 basePath === "/" ||
498 urlPath === basePath ||
499 urlPath.startsWith(`${basePath}/`)
500 );
501}
502
503function stripBasePathFromUrl(rawUrl, basePath) {
504 if (basePath === "/") return rawUrl;

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected