Skip to content

Kirby 5.0.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
$dirrequired string no default value The path of the directory
$locale stringorfalseornull null Locale for number formatting,
null for the current locale,
false to disable number formatting

Return type

string

Parent class

Kirby\Filesystem\Dir