JFolder::folders
Utility function to read the folders in a folder.
Signature
public function folders(string
$path,
[string
$filter = '.',
[mixed
$recurse = false,
[boolean
$full = false,
array
$exclude,
array
$excludefilter]]] )
Parameters
-
$path
- The path of the folder to read.
-
$filter
- A filter for folder names.
-
$recurse
- True to recursively search into sub-folders, or an integer to specify the maximum depth.
-
$full
- True to return the full path to the folders.
-
$exclude
- Array with names of folders which should not be shown in the result.
-
$excludefilter
- Array with regular expressions matching folders which should not be shown in the result.
Returns
- array
- Folders in the given folder.