1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

TOOLS/lua/autoload.lua: ignores all files starting with "."

This commit is contained in:
Yue Zhu 2017-05-13 01:16:45 -04:00 committed by wm4
parent 7840125e22
commit 8a7614a0fb

View File

@ -72,6 +72,9 @@ function find_and_add_entries()
return return
end end
table.filter(files, function (v, k) table.filter(files, function (v, k)
if string.match(v, "^%.") then
return false
end
local ext = get_extension(v) local ext = get_extension(v)
if ext == nil then if ext == nil then
return false return false