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

Function getBackupFileName

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

Source from the content-addressed store, hash-verified

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

Callers 1

createBackupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected