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

Function isMountedPath

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

Source from the content-addressed store, hash-verified

554}
555
556function isMountedPath(urlPath, basePath) {
557 return (
558 basePath === "/" ||
559 urlPath === basePath ||
560 urlPath.startsWith(`${basePath}/`)
561 );
562}
563
564function stripBasePathFromUrl(rawUrl, basePath) {
565 if (basePath === "/") return rawUrl;

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected