class FileListing

Functions for listing directories

Methods

array|bool
getDirContent(string $dir, string $expression = '')

Returns array of filtered file names

string|false
getFileSelectOptions(string $dir, string $extensions = '', string $active = '')

Returns options of filtered file names

string
supportedDecompressions()

Get currently supported decompressions.

Details

at line 26
array|bool getDirContent(string $dir, string $expression = '')

Returns array of filtered file names

Parameters

string $dir directory to list
string $expression regular expression to match files

Return Value

array|bool sorted file list on success, false on failure

at line 58
string|false getFileSelectOptions(string $dir, string $extensions = '', string $active = '')

Returns options of filtered file names

Parameters

string $dir directory to list
string $extensions regular expression to match files
string $active currently active choice

Return Value

string|false Html

at line 83
string supportedDecompressions()

Get currently supported decompressions.

Return Value

string separated list of extensions usable in getDirContent