Dir::index()
Read the directory and all subdirectories
Dir::index(string $dir, bool $recursive = false, array|false|null $ignore = [ ], ?string $path = null): array
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $dir * | string |
– | |
| $recursive | bool |
false |
|
| $ignore | array|false|null |
[ ] |
Array of absolut file paths;false to disable Dir::$ignore list(passing null is deprecated) |
| $path | string|null |
null |
Return type
array