Made project_scan_thread() ignore directories it can't open

Should fix #30 and #7
This commit is contained in:
rxi 2020-04-21 23:41:44 +01:00
parent a9b4bdf602
commit 73e96c2641

View file

@ -27,7 +27,7 @@ local function project_scan_thread()
coroutine.yield()
t = t or {}
local size_limit = config.file_size_limit * 10e5
local all = system.list_dir(path)
local all = system.list_dir(path) or {}
local dirs, files = {}, {}
for _, file in ipairs(all) do