MCPcopy Index your code
hub / github.com/codeaashu/claude-code / filterExistingPaths

Function filterExistingPaths

src/utils/githubRepoPathMapping.ts:94–97  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

92 * @returns Array of paths that exist
93 */
94export async function filterExistingPaths(paths: string[]): Promise<string[]> {
95 const results = await Promise.all(paths.map(pathExists))
96 return paths.filter((_, i) => results[i])
97}
98
99/**
100 * Validates that a path contains the expected GitHub repository.

Callers 2

runFunction · 0.85
resolveCwdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected