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

Function fileJoin

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

Source from the content-addressed store, hash-verified

481 return sliceEntries(dirEntries, data?.opts);
482 };
483 const fileJoin = async (paths: string[]): Promise<FileInfo> => {
484 const path = paths.length === 1 ? normalizeMockPath(paths[0]) : joinPaths(paths);
485 const entry = getEntry(path);
486 if (!entry) {
487 return makeNotFoundInfo(path);
488 }
489 return toFileInfo(entry);
490 };
491 const fileListStream = async function* (
492 data: FileListData
493 ): AsyncGenerator<CommandRemoteListEntriesRtnData, void, boolean> {

Callers

nothing calls this directly

Calls 5

normalizeMockPathFunction · 0.85
joinPathsFunction · 0.85
getEntryFunction · 0.85
makeNotFoundInfoFunction · 0.85
toFileInfoFunction · 0.85

Tested by

no test coverage detected