Back

ListFolder

ListFolder  lists all the files and sub folder names in a given path to a comma separated list.

app.ListFolder( path, filter, limit, options )

Example - Basic



function OnStart()
{
    list = app.ListFolder( "/sdcard" );
    app.ShowPopup( list );
}
    Copy     Copy All       Run      

Example - Filtered



function OnStart()
{
    list = app.ListFolder( "/sdcard", ".mp3" );
    app.ShowPopup( list );
}
    Copy     Copy All       Run      

string - path to file or folder ( "/absolute/..." or "relative/..." )
unknown
number - integer
string - "FullPath" or "?"