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);
   }