mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 05:01:20 +02:00
@@ -58,4 +58,21 @@ class File
|
|||||||
|
|
||||||
return $this;
|
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