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 | string orfalse ornull |
null
|
Locale for number formatting,null for the current locale,false to disable number formatting |
Return type
string