Method: f::size
Returns the size of a file.
Info
Syntax
f::size($file, $nice=false)
Parameters
- $file (string) The path
- $nice (boolean) True: return the size in a human readable format
Return (mixed)
Example
$size = f::size('/var/www/test.txt');
// size is ie: 1231939
$size = f::size('/var/www/test.txt', true);
// size is ie: 1,2 MB