Skip to content

Kirby 3.6.6

Dir::niceSize()

Returns a nicely formatted size of all the contents of the folder

Dir::niceSize(string $dir, string|null|false $locale = null): mixed

Parameters

Name Type Default Description
$dir * string The path of the directory
$locale string|null|false null Locale for number formatting,
null for the current locale,
false to disable number formatting

Return type

mixed

Parent class

Kirby\Filesystem\Dir