We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea5d03 commit 1924bb4Copy full SHA for 1924bb4
datajoint/connection.py
@@ -9,6 +9,7 @@
9
from getpass import getpass
10
import re
11
import pathlib
12
+import shutil
13
14
from .settings import config
15
from . import errors
@@ -258,9 +259,7 @@ def purge_query_cache(self):
258
259
and isinstance(config["query_cache"], str)
260
and pathlib.Path(config["query_cache"]).is_dir()
261
):
- path_iter = pathlib.Path(config["query_cache"]).glob("**/*")
262
- for path in path_iter:
263
- path.unlink()
+ shutil.rmtree()
264
265
def close(self):
266
self._conn.close()
0 commit comments