Skip to content

Commit e5207e9

Browse files
author
jghauser
committed
fix(sqlite-wrapper): create db folder recursively
fixes #67
1 parent d442f79 commit e5207e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/papis/sqlite-wrapper.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local db_uri = Path(config["db_path"])
2121
local data_tbl_schema = config["data_tbl_schema"]
2222

2323
if not db_uri:exists() then
24-
db_uri:parent():mkdir()
24+
db_uri:parent_assert():mkdir(Path.permission("rwxr-xr-x"), true)
2525
end
2626

2727
local tbl_methods = {}

0 commit comments

Comments
 (0)