MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / joinPaths

Function joinPaths

frontend/preview/mock/mockfilesystem.ts:407–416  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

405}
406
407function joinPaths(paths: string[]): string {
408 if (paths.length === 0) {
409 return MockHomePath;
410 }
411 let currentPath = normalizeMockPath(paths[0]);
412 for (const part of paths.slice(1)) {
413 currentPath = normalizeMockPath(part, currentPath);
414 }
415 return currentPath;
416}
417
418function getReadRange(data: FileData, size: number): { offset: number; end: number } {
419 const offset = Math.max(data?.at?.offset ?? 0, 0);

Callers 1

fileJoinFunction · 0.85

Calls 1

normalizeMockPathFunction · 0.85

Tested by

no test coverage detected