MCPcopy Create free account
hub / github.com/Effect-TS/effect / join

Function join

packages/effect/src/Path.ts:563–582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

561 },
562
563 join() {
564 if (arguments.length === 0) {
565 return "."
566 }
567 let joined
568 for (let i = 0; i < arguments.length; ++i) {
569 const arg = arguments[i]
570 if (arg.length > 0) {
571 if (joined === undefined) {
572 joined = arg
573 } else {
574 joined += "/" + arg
575 }
576 }
577 }
578 if (joined === undefined) {
579 return "."
580 }
581 return posixImpl.normalize(joined)
582 },
583
584 relative(from, to) {
585 if (from === to) return ""

Callers 15

Plugin.test.tsFile · 0.50
runTscFunction · 0.50
checkFunction · 0.50
withUnixServerFunction · 0.50
Client.test.tsFile · 0.50
NodeSink.test.tsFile · 0.50
NodeStdio.test.tsFile · 0.50

Calls

no outgoing calls

Tested by 6

runTscFunction · 0.40
checkFunction · 0.40
withUnixServerFunction · 0.40
replayBashCompletionFunction · 0.40
replayPowerShellFunction · 0.40
compileInstallerFunction · 0.40