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

Method isFileCached

frontend/src/cache.ts:351–355  ·  view source on GitHub ↗

* Check if file exists in cache (regardless of hash)

(filePath: string)

Source from the content-addressed store, hash-verified

349 * Check if file exists in cache (regardless of hash)
350 */
351 async isFileCached(filePath: string): Promise<boolean> {
352 await this.initPromise;
353 const normalizedPath = this.toRelativePath(filePath);
354 return normalizedPath in this.files;
355 }
356
357 /**
358 * Get cached file data

Callers 1

scheduleFileAnalysisFunction · 0.80

Calls 1

toRelativePathMethod · 0.95

Tested by

no test coverage detected