filesize
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets file size
filesize
(
string $filename
):
int
|
false
$path
=
$this
->
basePath
();
if (
file_exists
(
$path
) &&
is_file
(
$path
)) {
return
filesize
(
$path
);
}
return
false
;
src/Intervention/Image/File.php