MCPcopy Create free account
hub / github.com/breck7/scroll / join

Method join

external/.scrollLibs.js:21846–21853  ·  view source on GitHub ↗
(...segments)

Source from the content-addressed store, hash-verified

21844 return Utils.posix.dirname(path)
21845 }
21846 join(...segments) {
21847 const firstSegment = segments[0]
21848 if (isUrl(firstSegment)) {
21849 const baseUrl = firstSegment.endsWith("/") ? firstSegment : firstSegment + "/"
21850 return new URL(segments.slice(1).join("/"), baseUrl).toString()
21851 }
21852 return Utils.posix.join(...segments)
21853 }
21854}
21855class ScrollFile {
21856 constructor(codeAtStart, absoluteFilePath = "", fileSystem = new ScrollFileSystem({})) {

Callers

nothing calls this directly

Calls 4

isUrlFunction · 0.85
sliceMethod · 0.80
toStringMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected