Dir::inventory()
Scans the directory and analyzes files, content, meta info and children. This is used in Kirby\Cms\Page
, Kirby\Cms\Site
and Kirby\Cms\User
objects to fetch all relevant information.
Dir::inventory(string $dir, string $contentExtension = 'txt', array|null $contentIgnore = null, bool $multilang = false): array
Parameters
Name | Type | Default |
---|---|---|
$dirrequired | string |
no default value |
$contentExtension | string |
'txt'
|
$contentIgnore | array ornull |
null
|
$multilang | bool |
false
|
Return type
array