diff options
Diffstat (limited to 'server/src/async/scanfiles.lua')
-rw-r--r-- | server/src/async/scanfiles.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/async/scanfiles.lua b/server/src/async/scanfiles.lua index 900cc0a8..e114eca8 100644 --- a/server/src/async/scanfiles.lua +++ b/server/src/async/scanfiles.lua @@ -10,8 +10,14 @@ local ignore = { for path in io.scan(fs.path(root), ignore) do if path:extension():string() == '.lua' then - list[#list+1] = path:string() + local buf = io.load(path) + if buf then + OUT:push { + path = fs.absolute(path):string(), + buf = buf, + } + end end end -OUT:push(list) +OUT:push 'ok' |