Clears the cache for the given path.
(path: str)
| 81 | |
| 82 | |
| 83 | def clear_cache(path: str) -> None: |
| 84 | """Clears the cache for the given path.""" |
| 85 | index_path = find_index_from_cache_folder(path) |
| 86 | if index_path.exists(): |
| 87 | shutil.rmtree(index_path) |
| 88 | |
| 89 | |
| 90 | def save_index_to_cache(index: "SembleIndex", path: str) -> None: |