[latex3-commits] [latex3/lualibs] MK/slash-after-mkdir: Always add a slash after directory names in mkdir (e1a10ea)

github at latex-project.org github at latex-project.org
Wed Feb 14 21:49:27 CET 2024


Repository : https://github.com/latex3/lualibs
On branch  : MK/slash-after-mkdir
Link       : https://github.com/latex3/lualibs/commit/e1a10eaae4de03e55b0ad80e2227b14bf412dad9

>---------------------------------------------------------------

commit e1a10eaae4de03e55b0ad80e2227b14bf412dad9
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Feb 14 21:49:27 2024 +0100

    Always add a slash after directory names in mkdir
    
    Needed to properly create texmf-var after recent LuaTeX changes.


>---------------------------------------------------------------

e1a10eaae4de03e55b0ad80e2227b14bf412dad9
 lualibs-dir.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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





More information about the latex3-commits mailing list.