(self, file_path: Path)
| 398 | # ── Disk I/O ───────────────────────────────────────────────────────────── |
| 399 | |
| 400 | def _disk_path(self, file_path: Path) -> Optional[Path]: |
| 401 | if not self._cache_dir: |
| 402 | return None |
| 403 | key = hashlib.sha256(str(file_path.resolve()).encode()).hexdigest() |
| 404 | return self._cache_dir / f"{key}.json" |
| 405 | |
| 406 | def _disk_load(self, file_path: Path, file_hash: str) -> Optional[FileCacheEntry]: |
| 407 | p = self._disk_path(file_path) |
no outgoing calls