public function getDirectories($showHidden = false)
    {
        $it = $this->getContents();

        return array_filter($it, function (HandlerInterface $handler) use ($showHidden) {
            return $handler->isDir() && ($showHidden ?: strpos($handler->getFilename(), '.') !== 0);
        });
    }
public function getDirectories($showHidden = false)
    {
        $it = $this->getContents();

        return array_filter($it, function (HandlerInterface $handler) use ($showHidden) {
            return $handler->isDir() && ($showHidden ?: strpos($handler->getFilename(), '.') !== 0);
        });
    }
public function getDirectories ( $ showHidden = false ) { $ it = $ this -> getContents ( ) ; return array_filter ( $ it , function ( HandlerInterface $ handler ) use ( $ showHidden ) { return $ handler -> isDir ( ) && ( $ showHidden ? : strpos ( $ handler -> getFilename ( ) , '.' ) !== 0 ) ; } ) ; }
Return the directories content listing of the requested target.

@param bool $showHidden True to show hidden (dot) files

@throws Exception\IOException

@return DirectoryInterface[]
Return the directories content listing of the requested target .