LEPTON CMS 7.3.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
file_list

Function to list all files in a given directory.

Parameters
string$directoryDirectory to list
array$skipOptional array with directories to skip, e.g. '.svn' or '.git'
bool$show_hiddenOptional bool to list also hidden files, e.g. ".htaccess". Default is 'false'.
string$file_typeOptional pattern for file types, e.g. 'png' or '(jpg|jpeg|gif)'.
string$stripOptional string to strip from the full file path, e.g. LEPTON_PATH.
boolean$recursiveOptional flag for recursion (looking also in subdirectories)
Returns
array Sorted array within the files.

(LEPTON_PATH.'/modules/captcha_control/functions/backgrounds', [], false, "png", LEPTON_PATH);

        - Will return a list within all found .png files inside the folder functions/backgrounds,
          without the LEPTON_PATH like "/modules/captcha_control/functions/backgrounds/bg_10.png".