public function mime($path) { $finfo = new \Finfo(FILEINFO_MIME_TYPE); return $finfo->file($this->computePath($path)); }