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

Function resolveBackupPath

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

Source from the content-addressed store, hash-verified

731}
732
733function resolveBackupPath(backupFileName: string, sessionId?: string): string {
734 const configDir = getClaudeConfigHomeDir()
735 return join(
736 configDir,
737 'file-history',
738 sessionId || getSessionId(),
739 backupFileName,
740 )
741}
742
743/**
744 * 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