The ListFolder method returns a list of all files and folders in a given folder.

app.ListFolder( path, filter, limit, options ) → List: [ paths ]

The filter parameter is an can be used to specify a filter pattern. For example to find only mp3 files, you would specify “.mp3” as a filter

The You can also optionally sort the list in alphabetica order with the “alphasort” option.

See Also: WalkFolder, IsFolder, CreateList

Example - List home directory click to expand contents 

Example - List .jpg assets click to expand contents