fix: ensure paths are recreated after calling :AvanteClear to avoid errors (#678)
This commit is contained in:
parent
0705234991
commit
c3848d086c
@ -181,6 +181,9 @@ P.available = function() return templates ~= nil end
|
|||||||
P.clear = function()
|
P.clear = function()
|
||||||
P.cache_path:rm({ recursive = true })
|
P.cache_path:rm({ recursive = true })
|
||||||
P.history_path:rm({ recursive = true })
|
P.history_path:rm({ recursive = true })
|
||||||
|
|
||||||
|
if not P.cache_path:exists() then P.cache_path:mkdir({ parents = true }) end
|
||||||
|
if not P.history_path:exists() then P.history_path:mkdir({ parents = true }) end
|
||||||
end
|
end
|
||||||
|
|
||||||
return P
|
return P
|
||||||
|
Loading…
x
Reference in New Issue
Block a user