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

Function getAllFilePaths

common/src/project-file-tree.ts:234–244  ·  view source on GitHub ↗
(
  nodes: FileTreeNode[],
  basePath: string = '',
)

Source from the content-addressed store, hash-verified

232}
233
234export function getAllFilePaths(
235 nodes: FileTreeNode[],
236 basePath: string = '',
237): string[] {
238 return nodes.flatMap((node) => {
239 if (node.type === 'file') {
240 return [path.join(basePath, node.name)]
241 }
242 return getAllFilePaths(node.children || [], path.join(basePath, node.name))
243 })
244}
245
246export interface PathInfo {
247 path: string

Callers 4

read-subtree.tsFile · 0.90
getExampleFileListFunction · 0.90
discoverProjectPathsFunction · 0.90
getProjectFileContextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected