DirectoryList.ListByExt


static function ListByExt

Prototype:

static function ListByExt(directory, ext_arr, nodir);

Parameters

directory
the path that you want to list
ext_arr
an array containing the required file extension; if ext_arr is ["*"] will show all files
nodir
true or false. True if you need to exclude all the directories from the results.

Description:

Lists the items in the current directory if match a given list of extension.

Return value:

Returns an array containing the filenames.