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

Function getAllMemoryFilePaths

src/utils/claudemd.ts:1460–1479  ·  view source on GitHub ↗
(
  files: MemoryFileInfo[],
  readFileState: FileStateCache,
)

Source from the content-addressed store, hash-verified

1458 * - readFileState paths matching memory patterns (includes child directories)
1459 */
1460export function getAllMemoryFilePaths(
1461 files: MemoryFileInfo[],
1462 readFileState: FileStateCache,
1463): string[] {
1464 const paths = new Set<string>()
1465 for (const file of files) {
1466 if (file.content.trim().length > 0) {
1467 paths.add(file.path)
1468 }
1469 }
1470
1471 // Add memory files from readFileState (includes child directories)
1472 for (const filePath of cacheKeys(readFileState)) {
1473 if (isMemoryFilePath(filePath)) {
1474 paths.add(filePath)
1475 }
1476 }
1477
1478 return Array.from(paths)
1479}
1480

Callers

nothing calls this directly

Calls 3

cacheKeysFunction · 0.85
isMemoryFilePathFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected