(cache_path: Union[str, Path], suffix_list: Iterable = (".index", ".meta"))
| 303 | |
| 304 | @staticmethod |
| 305 | def check_cache_exists(cache_path: Union[str, Path], suffix_list: Iterable = (".index", ".meta")) -> bool: |
| 306 | cache_path = Path(cache_path) |
| 307 | for p in [cache_path] + [cache_path.with_suffix(_s) for _s in suffix_list]: |
| 308 | if not p.exists(): |
| 309 | return False |
| 310 | return True |
| 311 | |
| 312 | @staticmethod |
| 313 | def clear_cache(cache_path: Union[str, Path]): |
no test coverage detected