TolliumUser::FormatFileSize (open)
Format the size of a file to a readable format, based on user's settings like language and decimal separator
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
STRING FUNCTION FormatFileSize(INTEGER64 filesize, INTEGER decimals, BOOLEAN showbytes)
Parameters
INTEGER64 filesize
The size of the file
INTEGER decimals
Number of decimals to use
BOOLEAN showbytes
If false, sizes less than 1 kB are shown as '1 kB', otherwise the suffix 'bytes' is used to show the exact number of bytes
Return value
STRING
A formatted string of the submitted file size