src/Driver.php
public function getDirectory(string $path): Directory {
    if($this->isFile($path)) {
      throw new NotADirectoryException($path);
    }

    return $this->instantiateDir($path);
  }
public function getDirectory(string $path): Directory {
    if($this->isFile($path)) {
      throw new NotADirectoryException($path);
    }

    return $this->instantiateDir($path);
  }
public function getDirectory ( string $ path ) : Directory { if ( $ this -> isFile ( $ path ) ) { throw new NotADirectoryException ( $ path ) ; } return $ this -> instantiateDir ( $ path ) ; }
Gets a directory from the storage medium

@param  string  $path  The path of the directory

@return  Directory  A directory object

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