mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
Ignore directories named *.moon (#290)
This commit is contained in:
parent
2d96e11ed3
commit
c49fdca7aa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user