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:
parent
7840125e22
commit
8a7614a0fb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user