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

Method join

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

Source from the content-addressed store, hash-verified

21776 return path.dirname(absolutePath)
21777 }
21778 join(...segments) {
21779 const firstSegment = segments[0]
21780 if (isUrl(firstSegment)) {
21781 // For URLs, we need to handle joining differently
21782 const baseUrl = firstSegment.endsWith("/") ? firstSegment : firstSegment + "/"
21783 return new URL(segments.slice(1).join("/"), baseUrl).toString()
21784 }
21785 return path.join(...segments)
21786 }
21787}
21788// Update MemoryWriter to support URLs
21789class MemoryWriter {

Callers 15

importParsers.jsFile · 0.45
resolvePathMethod · 0.45
helpCommandMethod · 0.45
makeFilePathMethod · 0.45
updateIdsCommandMethod · 0.45
ScrollCliClass · 0.45
initFsMethod · 0.45
testCommandMethod · 0.45
buildFilesMethod · 0.45
updateParserFilesFunction · 0.45

Calls 3

isUrlFunction · 0.85
sliceMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected