MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / isFileValid

Method isFileValid

frontend/src/cache.ts:342–346  ·  view source on GitHub ↗

* Check if file is cached with matching hash

(filePath: string, contentHash: string)

Source from the content-addressed store, hash-verified

340 * Check if file is cached with matching hash
341 */
342 isFileValid(filePath: string, contentHash: string): boolean {
343 const normalizedPath = this.toRelativePath(filePath);
344 const cached = this.files[normalizedPath];
345 return cached !== undefined && cached.hash === contentHash;
346 }
347
348 /**
349 * Check if file exists in cache (regardless of hash)

Callers 1

checkFilesMethod · 0.95

Calls 1

toRelativePathMethod · 0.95

Tested by

no test coverage detected