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