MCPcopy
hub / github.com/upstash/context7 / getLegacyFilePath

Function getLegacyFilePath

packages/cli/src/utils/storage-paths.ts:46–48  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

44}
45
46export function getLegacyFilePath(fileName: string): string {
47 return path.join(os.homedir(), LEGACY_DIR, fileName);
48}
49
50/**
51 * Best-effort move of a legacy `~/.context7/<file>` into its new XDG location.

Callers 5

migrateLegacyFileSyncFunction · 0.85
migrateLegacyFileFunction · 0.85
resolveReadPathSyncFunction · 0.85
resolveReadPathFunction · 0.85
clearTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected