__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace RegularLabs\Scoped\Intervention\Image;
class File
{
/**
* Mime type
*
* @var string
*/
public $mime;
/**
* Name of directory path
*
* @var string
*/
public $dirname;
/**
* Basename of current file
*
* @var string
*/
public $basename;
/**
* File extension of current file
*
* @var string
*/
public $extension;
/**
* File name of current file
*
* @var string
*/
public $filename;
/**
* Sets all instance properties from given path
*
* @param string $path
*/
public function setFileInfoFromPath($path)
{
$info = pathinfo($path);
$this->dirname = array_key_exists('dirname', $info) ? $info['dirname'] : null;
$this->basename = array_key_exists('basename', $info) ? $info['basename'] : null;
$this->extension = array_key_exists('extension', $info) ? $info['extension'] : null;
$this->filename = array_key_exists('filename', $info) ? $info['filename'] : null;
if (file_exists($path) && is_file($path)) {
$this->mime = finfo_file(finfo_open(\FILEINFO_MIME_TYPE), $path);
}
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;
}
/**
* Get fully qualified path
*
* @return string
*/
public function basePath()
{
if ($this->dirname && $this->basename) {
return $this->dirname . '/' . $this->basename;
}
return null;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Commands | Folder | 0775 |
|
|
| Exception | Folder | 0775 |
|
|
| Facades | Folder | 0775 |
|
|
| Filters | Folder | 0775 |
|
|
| Gd | Folder | 0775 |
|
|
| Imagick | Folder | 0775 |
|
|
| AbstractColor.php | File | 6.17 KB | 0664 |
|
| AbstractDecoder.php | File | 8.56 KB | 0664 |
|
| AbstractDriver.php | File | 3.35 KB | 0664 |
|
| AbstractEncoder.php | File | 6.08 KB | 0664 |
|
| AbstractFont.php | File | 4.61 KB | 0664 |
|
| AbstractShape.php | File | 1.34 KB | 0664 |
|
| Constraint.php | File | 1.58 KB | 0664 |
|
| File.php | File | 1.74 KB | 0664 |
|
| Image.php | File | 19.84 KB | 0664 |
|
| ImageManager.php | File | 3.32 KB | 0664 |
|
| ImageManagerStatic.php | File | 2.01 KB | 0664 |
|
| ImageServiceProvider.php | File | 2.05 KB | 0664 |
|
| ImageServiceProviderLaravel4.php | File | 3.95 KB | 0664 |
|
| ImageServiceProviderLaravelRecent.php | File | 2.36 KB | 0664 |
|
| ImageServiceProviderLeague.php | File | 852 B | 0664 |
|
| ImageServiceProviderLumen.php | File | 739 B | 0664 |
|
| Point.php | File | 971 B | 0664 |
|
| Response.php | File | 1.97 KB | 0664 |
|
| Size.php | File | 9.33 KB | 0664 |
|