test(lockfile): create config dir if it does not exist

This commit is contained in:
Folke Lemaitre 2022-12-21 23:22:04 +01:00
parent 4cf176bdab
commit dc150df456
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ M.lock = {}
M._loaded = false
function M.update()
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p")
local f = assert(io.open(Config.options.lockfile, "w"))
f:write("{\n")
M.lock = {}