MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / flattenFileTree

Function flattenFileTree

cli/src/hooks/use-suggestion-engine.ts:278–279  ·  view source on GitHub ↗
(nodes: FileTreeNode[])

Source from the content-addressed store, hash-verified

276}>
277
278const flattenFileTree = (nodes: FileTreeNode[]): PathInfo[] =>
279 getAllPathsWithDirectories(nodes)
280
281const getFileName = (filePath: string): string => {
282 const lastSlash = filePath.lastIndexOf('/')

Callers 2

useSuggestionEngineFunction · 0.85
refreshFilePathsFunction · 0.85

Calls 1

Tested by

no test coverage detected