diff options
author | Marius <mariausol@gmail.com> | 2011-10-20 14:40:14 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-10-20 14:40:14 +0300 |
commit | 95538931c5aa680a8f8c491fa3f9bfedfc6a594f (patch) | |
tree | 1e6991ecf3e5c4a4933fe74a04828c3ff4edb161 /tex/context/base/l-dir.lua | |
parent | 3e2ebbeec9a05ccd43d56108aa16ed48b432709c (diff) | |
download | context-95538931c5aa680a8f8c491fa3f9bfedfc6a594f.tar.gz |
beta 2011.10.20 13:25
Diffstat (limited to 'tex/context/base/l-dir.lua')
-rw-r--r-- | tex/context/base/l-dir.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/l-dir.lua b/tex/context/base/l-dir.lua index 1d59b9220..ee831f98a 100644 --- a/tex/context/base/l-dir.lua +++ b/tex/context/base/l-dir.lua @@ -94,13 +94,13 @@ local function collectpattern(path,patt,recurse,result) local ok, scanner result = result or { } if path == "/" then - ok, scanner = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe + ok, scanner, first = xpcall(function() return walkdir(path..".") end, function() end) -- kepler safe else - ok, scanner = xpcall(function() return walkdir(path) end, function() end) -- kepler safe + ok, scanner, first = xpcall(function() return walkdir(path) end, function() end) -- kepler safe end if ok and type(scanner) == "function" then if not find(path,"/$") then path = path .. '/' end - for name in scanner do + for name in scanner, first do local full = path .. name local attr = attributes(full) local mode = attr.mode |