DirectoryList.ListByType


static function ListByType

Prototype:

static function ListByType(directory, type)

Parameters

directory
the path that you want to list
type
the type of results (files or directories) (ex: S_IFDIR)

Description:

Lists the items in the current directory if match a given type.

Return value:

Returns an array containing the filenames.