mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 02:52:18 +00:00
@@ -62,7 +62,7 @@ function lurker.listdir(path, recursive, skipdotfiles)
|
|||||||
for _, f in pairs(lume.map(dir(path), fullpath)) do
|
for _, f in pairs(lume.map(dir(path), fullpath)) do
|
||||||
if not skipdotfiles or not f:match("/%.[^/]*$") then
|
if not skipdotfiles or not f:match("/%.[^/]*$") then
|
||||||
if recursive and isdir(f) 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
|
else
|
||||||
table.insert(t, lume.trim(f, "/"))
|
table.insert(t, lume.trim(f, "/"))
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user