Skip to content

Commit

Permalink
feat: silent mkdir for tmp folders (resolve: #89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx committed Jan 13, 2024
1 parent c60bd7e commit 76ad40a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,9 @@ M.setup = function(opts)
local dir = v:gsub("/$", "")
M.config[k] = dir
if vim.fn.isdirectory(dir) == 0 then
M.info("creating directory " .. dir)
if k ~= "whisper_dir" and k ~= "image_dir" then
M.info("creating directory " .. dir)
end
vim.fn.mkdir(dir, "p")
end
end
Expand Down

0 comments on commit 76ad40a

Please sign in to comment.