Fixed incompatibilities with new lume in lurker.listdir()

See #3
This commit is contained in:
rxi
2015-01-14 19:32:37 +00:00
parent b70b8c4f06
commit ec36f81430

View File

@@ -62,7 +62,7 @@ function lurker.listdir(path, recursive, skipdotfiles)
for _, f in pairs(lume.map(dir(path), fullpath)) do
if not skipdotfiles or not f:match("/%.[^/]*$") then
if recursive and isdir(f) then
lume.merge(t, lurker.listdir(f, true, true))
t = lume.concat(t, lurker.listdir(f, true, true))
else
table.insert(t, lume.trim(f, "/"))
end