MCPcopy Create free account
hub / github.com/MigoXLab/coderio / joinSegments

Function joinSegments

src/nodes/process/structure/utils.ts:242–243  ·  view source on GitHub ↗
(...segments: (string | undefined)[])

Source from the content-addressed store, hash-verified

240
241 // Utility to join alias path segments (always POSIX '/')
242 const joinSegments = (...segments: (string | undefined)[]): string =>
243 path.posix.join(...segments.filter((segment): segment is string => Boolean(segment && segment.length)));
244
245 const nodes = Array.isArray(structure) ? structure : [structure];
246 let rootPath = '@/components';

Callers 1

traverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected