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

Function isMountedPath

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected