Ignore directories named *.moon (#290)

This commit is contained in:
Gskartwii 2016-09-25 20:18:42 +03:00 committed by leaf
parent 2d96e11ed3
commit c49fdca7aa

View File

@ -70,9 +70,7 @@ local function scan_directory(root, collected)
if lfs.attributes(full_path, "mode") == "directory" then if lfs.attributes(full_path, "mode") == "directory" then
scan_directory(full_path, collected) scan_directory(full_path, collected)
end elseif fname:match("%.moon$") then
if fname:match("%.moon$") then
table.insert(collected, full_path) table.insert(collected, full_path)
end end
end end