diff --git a/oxlib/cache.py b/oxlib/cache.py index ec47b5f..a63182a 100644 --- a/oxlib/cache.py +++ b/oxlib/cache.py @@ -109,8 +109,8 @@ def _getCacheBase(): def _getCacheDB(): path = _getCacheBase() - if not os.path.exists(os.path.dirname(path)): - os.makedirs(os.path.dirname(path)) + if not os.path.exists(path): + os.makedirs(path) return os.path.join(path, "cache.sqlite") def _connectDb():