/** * check exists a file * * @param File $file file instance * @return bool */ public function exists(File $file) { return $this->getDisk($file->disk)->exists($file->getPathname()); }
/** * get file url path * * @param File $file file instance * @return string */ protected function getUrl(File $file) { $config = $this->getConfig($file->disk); if (isset($config['url']) === true) { return rtrim($config['url'], '/') . '/' . ltrim($file->getPathname(), '/'); } return null; }