Skip to content

Commit 706bd3f

Browse files
authored
fix(log): mkdir parent arg should be parents (#464)
1 parent 2ae1818 commit 706bd3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/plenary/log.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ log.new = function(config, standalone)
137137
if config.use_file then
138138
local outfile_parent_path = require("plenary.path"):new(outfile):parent()
139139
if not outfile_parent_path:exists() then
140-
outfile_parent_path:mkdir { parent = true }
140+
outfile_parent_path:mkdir { parents = true }
141141
end
142142
local fp = assert(io.open(outfile, "a"))
143143
local str = string.format("[%-6s%s] %s: %s\n", nameupper, os.date(), lineinfo, msg)

0 commit comments

Comments
 (0)