I need a way to get a list of all the files in a directory or is there already a function. I googled for it but i could not find a way to do it.
I'm currently using this, but it's Windows-specific:
for filename in io.popen([[dir wikipages\\api\\*.txt /b]]):lines() do
I think we have something for that. MCServer uses it to load all files in a plugin directory. I can't look it up right now though. Also I'm not sure if it's exposed to lua