lua: list files in a directory
Is there a way to list the file names in a directory? I tried to use the function in the second answer at http://stackoverflow.com/questions/5303174/get-list-of-directory-in-a-lua but popen function is not supported. Also, that particular function only works with systems that have 'ls' installed. I also browsed the builtin lua files a bit but, didn't find anything.
Any ideas? If it's not possible I think this would be a good helper function to include in the built-in scripts.
Thanks in advance.
Any ideas? If it's not possible I think this would be a good helper function to include in the built-in scripts.
Thanks in advance.