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