LEPTON CMS 7.3.0
feel free to keep it strictly simple...
|
Function to list all files in a given directory.
string | $directory | Directory to list |
array | $skip | Optional array with directories to skip, e.g. '.svn' or '.git' |
bool | $show_hidden | Optional bool to list also hidden files, e.g. ".htaccess". Default is 'false'. |
string | $file_type | Optional pattern for file types, e.g. 'png' or '(jpg|jpeg|gif)'. |
string | $strip | Optional string to strip from the full file path, e.g. LEPTON_PATH. |
boolean | $recursive | Optional flag for recursion (looking also in subdirectories) |
(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".