diff options
author | Marius <mariausol@gmail.com> | 2012-05-14 10:40:15 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-05-14 10:40:15 +0300 |
commit | 86301645de1fc594ca94a2a722fce813c16966b1 (patch) | |
tree | c8723188d4d356086f97a40e36499ce883711b37 /tex/context/base/l-dir.lua | |
parent | 8d448442950011295b60f1ea7385887e043388e9 (diff) | |
download | context-86301645de1fc594ca94a2a722fce813c16966b1.tar.gz |
beta 2012.05.14 09:19
Diffstat (limited to 'tex/context/base/l-dir.lua')
-rw-r--r-- | tex/context/base/l-dir.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tex/context/base/l-dir.lua b/tex/context/base/l-dir.lua index ee831f98a..71de3114e 100644 --- a/tex/context/base/l-dir.lua +++ b/tex/context/base/l-dir.lua @@ -23,8 +23,6 @@ local attributes = lfs.attributes local walkdir = lfs.dir local isdir = lfs.isdir local isfile = lfs.isfile -local mkdir = lfs.mkdir -local chdir = lfs.chdir local currentdir = lfs.currentdir -- handy @@ -292,7 +290,7 @@ if onwindows then pth = pth .. "/" .. s end if make_indeed and not isdir(pth) then - mkdir(pth) + lfs.mkdir(pth) end end return pth, (isdir(pth) == true) @@ -335,7 +333,7 @@ else pth = pth .. "/" .. s end if make_indeed and not first and not isdir(pth) then - mkdir(pth) + lfs.mkdir(pth) end end else @@ -343,7 +341,7 @@ else for s in gmatch(str,"[^/]+") do pth = pth .. "/" .. s if make_indeed and not isdir(pth) then - mkdir(pth) + lfs.mkdir(pth) end end end @@ -378,10 +376,10 @@ if onwindows then first, last = match(str,"^([a-zA-Z]:)(.*)$") if first and not find(last,"^/") then local d = currentdir() - if chdir(first) then + if lfs.chdir(first) then first = dir.current() end - chdir(d) + lfs.chdir(d) end end if not first then |