Reference

Dir::index()

Read the directory and all subdirectories

Dir::index(string $dir, bool $recursive = false, array $ignore = null, string $path = null): array

Parameters

Name Type Default Description
$dir string
$recursive bool false
$ignore array null
$path string null

Return type

array

Source code

kirby/src/Toolkit/Dir.php#L118