Skip to content

Kirby 3.8.4

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 $contentIgnore = null, bool $multilang = false): array

Parameters

Name Type Default
$dir * string
$contentExtension string 'txt'
$contentIgnore array null
$multilang bool false

Return type

array

Parent class

Kirby\Filesystem\Dir