diff --git a/fastlite/kw.py b/fastlite/kw.py index 7097aab..a452713 100644 --- a/fastlite/kw.py +++ b/fastlite/kw.py @@ -13,7 +13,7 @@ class MissingPrimaryKey(Exception): pass def database(path, wal=True, flags=None)->Any: path = Path(path) - path.parent.mkdir(exist_ok=True) + path.parent.mkdir(parents=True, exist_ok=True) conn_or_path = Connection(str(path), flags=flags) if flags else path db = Database(conn_or_path) if wal: db.enable_wal()