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

Function maybeExpandFilePath

src/utils/fileHistory.ts:880–885  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

878}
879
880function maybeExpandFilePath(filePath: string): string {
881 if (isAbsolute(filePath)) {
882 return filePath
883 }
884 return join(getOriginalCwd(), filePath)
885}
886
887/**
888 * Restores file history snapshot state for a given log option.

Callers 5

fileHistoryMakeSnapshotFunction · 0.85
fileHistoryGetDiffStatsFunction · 0.85
fileHistoryHasAnyChangesFunction · 0.85
applySnapshotFunction · 0.85

Calls 1

getOriginalCwdFunction · 0.85

Tested by

no test coverage detected