List Filesystem contents?

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

was wondering if there's a way to list all of the files that are stored in the Ti.Filesystem, i know that you can get a specific file, but wondering if there was a way to do it without having to know that specific file, just to list them.

so without having to use : Ti.Filesystem.getFile(dir,filename);

any way to list all files in the Filesystem?

thanks!

rocksteady, danno~

1 Answer

Accepted Answer

this any good to you?

var dirTest = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory);
var dirList = dirTest.getDirectoryListing();
Ti.API.info('directory listing ' + dirList);
Rob

Your Answer

Think you can help? Login to answer this question!