MCPcopy Create free account
hub / github.com/socketstream/socketstream / prefixPath

Function prefixPath

lib/client/bundler/index.js:281–288  ·  view source on GitHub ↗
(base,p)

Source from the content-addressed store, hash-verified

279 }
280
281 function prefixPath(base,p) {
282 base = base.replace(/^\//,'');
283 if (p === '*') {
284 return base;
285 }
286 p = p.replace(/\/\*$/,'');
287 return path.join(base,p);
288 }
289
290 function entries(from, dirType) {
291 if (from == null) {

Callers 1

relativePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected