Skip to content

Kirby 4.4.1

Dir::size()

Gets the size of the directory

Dir::size(string $dir, bool $recursive = true): int|false

Parameters

Name Type Default Description
$dir * string The path of the directory
$recursive bool true Include all subfolders and their files

Return type

int|false

Parent class

Kirby\Filesystem\Dir