MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getAllMemoryFilePaths

Function getAllMemoryFilePaths

source code/utils/claudemd.ts:1462–1481  ·  view source on GitHub ↗
(
  files: MemoryFileInfo[],
  readFileState: FileStateCache,
)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

cacheKeysFunction · 0.85
isMemoryFilePathFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected