MCPcopy
hub / github.com/osnr/TabFS / tryMatchRoute

Function tryMatchRoute

extension/background.js:918–929  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

916 a.__matchVarCount - b.__matchVarCount
917);
918function tryMatchRoute(path) {
919 if (path.match(/\/\._[^\/]+$/)) {
920 // Apple Double ._whatever file for xattrs
921 throw new UnixError(unix.ENOTSUP);
922 }
923
924 for (let route of sortedRoutes) {
925 const vars = route.__match(path);
926 if (vars) { return [route, vars]; }
927 }
928 throw new UnixError(unix.ENOENT);
929}
930
931let port;
932async function onMessage(req) {

Callers 2

test.jsFile · 0.85
onMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected