dirContents()
private method
Gets directory contents (descendant files and folders).
private dirContents ( null | string $directory = null, boolean $recursive = False, null | string $filter = null ) : array |
$directory |
null | string |
Initial directory to get descendants for |
$recursive |
boolean |
If 'True' method would return all descendants recursively, otherwise just immediate
descendants |
$filter |
null | string |
Filter to be applied to all directory descendants. Could be a string, or an array
of strings (perl regexp are supported, if started with '~').
See {@link filterPassed} method for further information on filters. |
return |
array |
Array of descendants filepaths |