(self)
| 239 | os.makedirs(self._store_dir) |
| 240 | |
| 241 | def clear_store(self): |
| 242 | log.debug("clear store dir: %s" % self._store_dir) |
| 243 | assert len(self._store_dir) > 1 |
| 244 | if not os.path.exists(self._store_dir): |
| 245 | os.makedirs(self._store_dir) |
| 246 | for dirpath in ["challenges", "tmp", "archive", "domains", "accounts", "staging", "ocsp"]: |
| 247 | shutil.rmtree(os.path.join(self._store_dir, dirpath), ignore_errors=True) |
| 248 | |
| 249 | def clear_ocsp_store(self): |
| 250 | assert len(self._store_dir) > 1 |