mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 12:11:26 +02:00
@@ -58,4 +58,21 @@ class File
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get file size
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function filesize()
|
||||
{
|
||||
$path = $this->basePath();
|
||||
|
||||
if (file_exists($path) && is_file($path)) {
|
||||
return filesize($path);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user