moonscript support + cleanup

This commit is contained in:
kepler155c@gmail.com
2020-06-05 21:38:26 -06:00
parent e7fcd68a0f
commit 6c5cc508b1
4 changed files with 15 additions and 11 deletions

View File

@@ -64,8 +64,11 @@ function UI.QuickSelect:enable()
local files = fs.list(dir)
for _,f in ipairs(files) do
local fullName = fs.combine(dir, f)
if fs.native.isDir(fullName) then -- skip virtual dirs
if f ~= '.git' then recurse(fullName) end
if fs.isDir(fullName) then
-- skip virtual dirs
if f ~= '.git' and fs.native.isDir(fullName) then
recurse(fullName)
end
else
_insert(self.grid.values, {
name = f,