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

Function resolveBackupPath

src/utils/fileHistory.ts:735–743  ·  view source on GitHub ↗
(backupFileName: string, sessionId?: string)

Source from the content-addressed store, hash-verified

733}
734
735function resolveBackupPath(backupFileName: string, sessionId?: string): string {
736 const configDir = getClaudeConfigHomeDir()
737 return join(
738 configDir,
739 'file-history',
740 sessionId || getSessionId(),
741 backupFileName,
742 )
743}
744
745/**
746 * Creates a backup of the file at filePath. If the file does not exist

Callers 6

checkOriginFileChangedFunction · 0.85
computeDiffStatsForFileFunction · 0.85
createBackupFunction · 0.85
restoreBackupFunction · 0.85
copyFileHistoryForResumeFunction · 0.85

Calls 1

getSessionIdFunction · 0.85

Tested by

no test coverage detected