芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/apv.mgaplay.com.br/vendor/intervention/image/src/Intervention/Image/File.php
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; } }