All Things Ubuntu Library Wiki
Ubuntu dedicated Object Pascal libraries
Brought to you by:
krisjacewicz
Converts number of bytes into a human readable file size string. It behaves similar to UNIX df command when passed -h switch (for human firendly). So for example, if the file size passed it 1024, the resulting string will be "1KB". All unit suffixes are: KB, MB, GB. Float number of units are rounded to 2 digits.
Function SizeStr(const size: Int64): string;
Returns string with a human readable file size.