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