MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / loadFileHashCache

Function loadFileHashCache

src/scanner.ts:101–108  ·  view source on GitHub ↗
(outputDir: string)

Source from the content-addressed store, hash-verified

99}
100
101export async function loadFileHashCache(outputDir: string): Promise<FileHashCache> {
102 try {
103 const raw = await readFile(join(outputDir, "cache.json"), "utf-8");
104 return JSON.parse(raw) as FileHashCache;
105 } catch {
106 return { version: 1, hashes: {} };
107 }
108}
109
110export async function saveFileHashCache(outputDir: string, cache: FileHashCache): Promise<void> {
111 try {

Callers

nothing calls this directly

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected