MCPcopy
hub / github.com/virattt/dexter / removeCacheFile

Function removeCacheFile

src/utils/cache.ts:113–119  ·  view source on GitHub ↗

* Safely remove a cache file (e.g. when it's corrupted). * Logs on failure but never throws.

(filepath: string)

Source from the content-addressed store, hash-verified

111 * Logs on failure but never throws.
112 */
113function removeCacheFile(filepath: string): void {
114 try {
115 unlinkSync(filepath);
116 } catch {
117 // Best-effort cleanup — not critical
118 }
119}
120
121// ============================================================================
122// Public API

Callers 1

readCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected