MCPcopy Create free account
hub / github.com/apache/maka / backupPath

Function backupPath

packages/storage/src/memory-bundle-io.ts:1058–1060  ·  view source on GitHub ↗
(directory: string, kind: MemoryBackupKind)

Source from the content-addressed store, hash-verified

1056}
1057
1058function backupPath(directory: string, kind: MemoryBackupKind): string {
1059 return join(directory, BACKUP_FILES[kind]);
1060}
1061
1062function restoreHistoryPath(directory: string, index: number): string {
1063 return join(directory, `MEMORY.md.restore.${index}.bak`);

Callers 4

readBackupCandidateFunction · 0.85
readBackupBytesFunction · 0.85
writeBackupBytesFunction · 0.85
rotateRestoreHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected