public function openDir()
   {
        if(!$this->isDir())
        {
            throw new IOException("Not a directory");
        }

        $dirconv = DirectoryConverter::fromPath($this);
        $dirconv->setRoot($this->getRootDirectory());

        $type = $this->getDirectoryType();
        return new $type($dirconv);
   }
public function openDir()
   {
        if(!$this->isDir())
        {
            throw new IOException("Not a directory");
        }

        $dirconv = DirectoryConverter::fromPath($this);
        $dirconv->setRoot($this->getRootDirectory());

        $type = $this->getDirectoryType();
        return new $type($dirconv);
   }
public function openDir ( ) { if ( ! $ this -> isDir ( ) ) { throw new IOException ( "Not a directory" ) ; } $ dirconv = DirectoryConverter :: fromPath ( $ this ) ; $ dirconv -> setRoot ( $ this -> getRootDirectory ( ) ) ; $ type = $ this -> getDirectoryType ( ) ; return new $ type ( $ dirconv ) ; }
Open new Directory instance
@return \PerrysLambda\IO\Directory
Open new Directory instance