diff --git a/buildinfo.txt b/buildinfo.txt index 0d4c9e9..aee5c5f 100644 --- a/buildinfo.txt +++ b/buildinfo.txt @@ -21,6 +21,7 @@ copy and rename new files (must be done manually as far as I can see) - Add version info to NEWS - Enable unicode in lualibs-unicode (until we remove the dependency ...) - Disable outer return statements in lualibs-util-jsn and lualibs-util-zip +- In `lualibs-dir.lua`, replace all `mkdir(pth)` with `mkdir(pth .. '/')`. ## Step 4 diff --git a/lualibs-dir.lua b/lualibs-dir.lua index 3164068..0ffe3f3 100644 --- a/lualibs-dir.lua +++ b/lualibs-dir.lua @@ -473,7 +473,7 @@ if onwindows then pth = pth .. "/" .. s end if make_indeed and not isdir(pth) then - mkdir(pth) + mkdir(pth .. '/') end end return pth, (isdir(pth) == true) @@ -525,7 +525,7 @@ else pth = pth .. "/" .. s end if make_indeed and not first and not isdir(pth) then - mkdir(pth) + mkdir(pth .. '/') end end else @@ -533,7 +533,7 @@ else for s in gmatch(str,"[^/]+") do pth = pth .. "/" .. s if make_indeed and not isdir(pth) then - mkdir(pth) + mkdir(pth .. '/') end end end