MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / appendDirectorySlash

Function appendDirectorySlash

src/utils/renderers/path-tree.ts:86–88  ·  view source on GitHub ↗
(name: string, hasChildren: boolean)

Source from the content-addressed store, hash-verified

84}
85
86function appendDirectorySlash(name: string, hasChildren: boolean): string {
87 return hasChildren && !name.endsWith('/') ? `${name}/` : name;
88}
89
90function formatLeaf(node: PathTreeNode, displayName: string): string {
91 return node.label ? `${displayName} — ${node.label}` : displayName;

Callers 1

renderNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected