diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-21 06:22:29 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-05-21 06:22:29 +0300 |
commit | 5f2ef13d20837eb9c0fe84a378e70c5066e6d021 (patch) | |
tree | 8da8eb76198b5015119d88aeb0480dedefa27e1d /lualibs-dir.lua | |
parent | 2ede45796e70760267e4928dfff04d3546a8f159 (diff) | |
download | lualibs-5f2ef13d20837eb9c0fe84a378e70c5066e6d021.tar.gz |
Sync with ConTeXt beta (beta 2010.05.20)
Needed to sync luaotfload.
Diffstat (limited to 'lualibs-dir.lua')
-rw-r--r-- | lualibs-dir.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lualibs-dir.lua b/lualibs-dir.lua index 5828d99..2643f53 100644 --- a/lualibs-dir.lua +++ b/lualibs-dir.lua @@ -204,8 +204,9 @@ local make_indeed = true -- false if string.find(os.getenv("PATH"),";") then -- os.type == "windows" function dir.mkdirs(...) - local str, pth = "", "" - for _, s in ipairs({...}) do + local str, pth, t = "", "", { ... } + for i=1,#t do + local s = t[i] if s ~= "" then if str ~= "" then str = str .. "/" .. s @@ -303,8 +304,9 @@ if string.find(os.getenv("PATH"),";") then -- os.type == "windows" else function dir.mkdirs(...) - local str, pth = "", "" - for _, s in ipairs({...}) do + local str, pth, t = "", "", { ... } + for i=1,#t do + local s = t[i] if s ~= "" then if str ~= "" then str = str .. "/" .. s |