MCPcopy
hub / github.com/codeaashu/claude-code / getBackupFileName

Function getBackupFileName

src/utils/fileHistory.ts:725–731  ·  view source on GitHub ↗
(filePath: string, version: number)

Source from the content-addressed store, hash-verified

723}
724
725function getBackupFileName(filePath: string, version: number): string {
726 const fileNameHash = createHash('sha256')
727 .update(filePath)
728 .digest('hex')
729 .slice(0, 16)
730 return `${fileNameHash}@v${version}`
731}
732
733function resolveBackupPath(backupFileName: string, sessionId?: string): string {
734 const configDir = getClaudeConfigHomeDir()

Callers 1

createBackupFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected