MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / 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

no outgoing calls

Tested by

no test coverage detected