MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getAllFilePaths

Method getAllFilePaths

src/db/queries.ts:4597–4603  ·  view source on GitHub ↗

* Get all tracked file paths (lightweight — no full FileRecord objects)

()

Source from the content-addressed store, hash-verified

4595 * Get all tracked file paths (lightweight — no full FileRecord objects)
4596 */
4597 getAllFilePaths(): string[] {
4598 if (!this.stmts.getAllFilePaths) {
4599 this.stmts.getAllFilePaths = this.db.prepare('SELECT path FROM files ORDER BY path');
4600 }
4601 const rows = this.stmts.getAllFilePaths.all() as Array<{ path: string }>;
4602 return rows.map((r) => r.path);
4603 }
4604
4605 /**
4606 * Get all distinct node names (lightweight — just name strings for pre-filtering)

Callers 11

pythonFilePathsMethod · 0.80
sparseCheckoutChangesMethod · 0.80
warmCachesMethod · 0.80
warmCachesYieldingMethod · 0.80
getGoModulesMethod · 0.80
createContextMethod · 0.80
manualMockNamesMethod · 0.80
indexedPathsFunction · 0.80
indexedPathsFunction · 0.80
indexedPathsFunction · 0.80

Calls 3

mapMethod · 0.80
prepareMethod · 0.65
allMethod · 0.65

Tested by 3

indexedPathsFunction · 0.64
indexedPathsFunction · 0.64
indexedPathsFunction · 0.64