• Find scenes
    2 replies, posted
[lua] local list = file.Find("scenes/*.vcd") for _, f in pairs(list) do Msg( "scene: "..f.."\n" ) 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.
[QUOTE=Kopimi;33167438]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.[/QUOTE] You should use file.Find("scenes/*.vcd", true) instead
Sorry, you need to Log In to post a reply to this thread.