Skip to content

Kirby 5.0.4

Dir::size()

Gets the size of the directory

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

Parameters

Name Type Default Description
$dirrequired string no default value The path of the directory
$recursive bool true Include all subfolders and their files

Return types

intorfalse

Parent class

Kirby\Filesystem\Dir