Titanium Desktop: All files in a directory

You must Login before you can answer or comment on any questions.

Hi folks, i wonder if there's the possibility to get all filenames in a directory. I didn't found anything about that in the docs and would be happy if someone could point me in the right direction.

Julian

— asked 3 years ago by Ju Ho
0 Comments

1 Answer

Accepted Answer

you need to get the File object for the directory first (using getFile()) then you'd call getDirectoryListing():

var dfo = Titanium.Filesystem.getFile(yourDir); var fid = dfo.getDirectoryListing();

Your Answer

Think you can help? Login to answer this question!