MCPcopy
hub / github.com/claude-code-best/claude-code / getAllMemoryFilePaths

Function getAllMemoryFilePaths

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

cacheKeysFunction · 0.85
isMemoryFilePathFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected