TOOLS/lua/autoload: fix behavior with network URLs

readdir() fails if the directory is an URL, so just exit instead of
letting the Lua script fail.
This commit is contained in:
wm4 committed 2015-01-03 14:48:33 +01:00
1 parent d5f1170679
commit 44c0770247
1 file changed
+3
+3
View File
@@ -25,6 +25,9 @@ function find_and_add_entries()
return
end
local files = mputils.readdir(dir, "files")
if files == nil then
return
end
table.sort(files)
if dir == "." then
dir = ""