Find scenes

[lua]
local list = file.Find(“scenes/*.vcd”)
for _, f in pairs(list) do
Msg( "scene: “…f…”
" )
end
[/lua]
Doesn’t output a thing. What did I do wrong?

Try file.Find("…/scenes/*.vcd")

file.Find reads relative to the /data folder, so right now it’s looking for files in the “data/scenes” folder, which probably isn’t what you need.

You should use file.Find(“scenes/*.vcd”, true) instead