GoLang SplFileInfo::getSize

request it (238)
GoLang replacement for PHP's SplFileInfo::getSize [edit | history]

Do you know a GoLang replacement for PHP's SplFileInfo::getSize? Write it!

PHP SplFileInfo::getSize

PHP original manual for SplFileInfo::getSize [ show | php.net ]


(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getSizeGets file size


public int SplFileInfo::getSize ( void )

Returns the filesize in bytes for the file referenced.


This function has no parameters.

Return Values

The filesize in bytes.


A RuntimeException will be thrown if the file does not exist or an error occurs.

See Also