getPathname() public method

Get a path name of file
public getPathname ( ) : string
return string
 /**
  * check exists a file
  *
  * @param File $file file instance
  * @return bool
  */
 public function exists(File $file)
 {
     return $this->getDisk($file->disk)->exists($file->getPathname());
 }
Example #2
0
 /**
  * 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;
 }