Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Directory Listing...

edited June 2013 in General Posts: 17

Is there a way to get a list of files in a directory?
Looking on google most references seemed to use popen, but this does not seem to be supported.
I want to be able to search a set of text files for a particular string, and display the file name and the line containing the text.
Preferably I would like to get a list of files from a Dropbox directory.
Any suggestions would be good.



  • dave1707dave1707 Mod
    Posts: 9,813

    Try this. Change Documents to Dropbox or one of the other sprite packages.

    function setup()     s=spriteList("Documents")     for a,b in pairs(s) do         print(a,b)     end     end
  • PhdPhd
    edited June 2013 Posts: 17

    Thank you, almost there, but this only lists image files, and will only take valid spritepack directories.

Sign In or Register to comment.