Hello!
I am trying to get the name, extension and full path of files in a directory.
I use Lua, but I do not know how to do it.
Someone to help me get this
Thanks a lot.
Alguien que hable español
Files in a directory [LUA]
Re: Files in a directory [LUA]
Is this wxLua or just plain Lua?
If it's wxLua, there should be the equivalent of wxDir::GetAllFiles() in its API.
http://docs.wxwidgets.org/trunk/classwx ... 28d0ada848
http://wxlua.sourceforge.net/docs/wxluaref.html#wxDir
Edit: After one minute of Googling:
http://stackoverflow.com/a/5303802
If it's wxLua, there should be the equivalent of wxDir::GetAllFiles() in its API.
http://docs.wxwidgets.org/trunk/classwx ... 28d0ada848
http://wxlua.sourceforge.net/docs/wxluaref.html#wxDir
Edit: After one minute of Googling:
http://stackoverflow.com/a/5303802
Use the source, Luke!
Re: Files in a directory [LUA]
Thanks,
Yes it's wxLua.
Which recommends, if I am managing a directory with more than 30.000 files? lua pure function or wx GetallFiles? Which has better performance?
Yes it's wxLua.
Which recommends, if I am managing a directory with more than 30.000 files? lua pure function or wx GetallFiles? Which has better performance?
Re: Files in a directory [LUA]
I wouldn't expect a big difference between the two, the main work will be on the OS side anyway.
Use the source, Luke!