1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +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
end
table.filter(files, function (v, k)
if string.match(v, "^%.") then
return false
end
local ext = get_extension(v)
if ext == nil then
return false