MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / joinTreePath

Function joinTreePath

packages/web/src/features/tools/listTree.ts:211–216  ·  view source on GitHub ↗
(parentPath: string, name: string)

Source from the content-addressed store, hash-verified

209}
210
211const joinTreePath = (parentPath: string, name: string): string => {
212 if (!parentPath) {
213 return name;
214 }
215 return `${parentPath}/${name}`;
216}
217
218const buildTreeNodeIndex = (root: FileTreeNode): Map<string, FileTreeNode> => {
219 const nodeIndex = new Map<string, FileTreeNode>();

Callers 2

listTree.tsFile · 0.85
visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected