Skip to content

Kirby 4.1.2

Dir::niceSize()

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

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

Parameters

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

Return type

string

Parent class

Kirby\Filesystem\Dir