( nodes: FileTreeNode[], basePath: string = '', )
| 232 | } |
| 233 | |
| 234 | export 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 | |
| 246 | export interface PathInfo { |
| 247 | path: string |
no outgoing calls
no test coverage detected