src/Driver.php
public function getFile(string $path): File {
    if($this->isDir($path)) {
      throw new NotAFileException($path);
    }

    return $this->instantiateFile($path);
  }
public function getFile(string $path): File {
    if($this->isDir($path)) {
      throw new NotAFileException($path);
    }

    return $this->instantiateFile($path);
  }
public function getFile ( string $ path ) : File { if ( $ this -> isDir ( $ path ) ) { throw new NotAFileException ( $ path ) ; } return $ this -> instantiateFile ( $ path ) ; }
Gets a file from the storage medium

@param  string  $path  The path of the file

@return  File  A file object

@throws  NotAFileException if <tt>$path</tt> is not a file
Gets a file from the storage medium