Create a new empty cache at `self.path`
(self)
| 997 | self._chunks = None |
| 998 | |
| 999 | def create(self): |
| 1000 | """Create a new empty cache at `self.path`""" |
| 1001 | self.path.mkdir(parents=True, exist_ok=True) |
| 1002 | with open(self.path / "README", "w") as fd: |
| 1003 | fd.write(CACHE_README) |
| 1004 | self.cache_config.create() |
| 1005 | |
| 1006 | def open(self): |
| 1007 | if not self.path.is_dir(): |