05-26-2013, 06:47 AM
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.
List of files in dir
|
05-26-2013, 06:47 AM
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.
09-12-2013, 05:20 AM
I'm currently using this, but it's Windows-specific:
for filename in io.popen([[dir wikipages\\api\\*.txt /b]]):lines() do Thanks given by: NiLSPACE
09-12-2013, 05:34 AM
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
09-12-2013, 05:37 AM
I'm thinking about bringing in the LuaFileSystem library:
https://github.com/mc-server/MCServer/issues/162 LFS: https://github.com/keplerproject/luafilesystem |
« Next Oldest | Next Newest »
|