JFolder::files
Utility function to read the files in a folder.
Signature
public function files(string
$path,
[string
$filter = '.',
[mixed
$recurse = false,
[boolean
$full = false,
[array
$exclude = false,
[array
$excludefilter = false,
[boolean
$naturalSort = false]]]]]] )
Parameters
-
$path
- The path of the folder to read.
-
$filter
- A filter for file 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 file.
-
$exclude
- Array with names of files which should not be shown in the result.
-
$excludefilter
- Array of filter to exclude
-
$naturalSort
- False for asort, true for natsort
Returns
- array
- Files in the given folder.