public function listDirectories($recursive = false, $showHidden = false)
	{
		$result = [];

		foreach ($this->listAllIterator($recursive, $showHidden) as $element) {
			if ($element->isDir()) {
				$result[] = $element->getFilename();
			}
		}

		return $result;
	}
public function listDirectories($recursive = false, $showHidden = false)
	{
		$result = [];

		foreach ($this->listAllIterator($recursive, $showHidden) as $element) {
			if ($element->isDir()) {
				$result[] = $element->getFilename();
			}
		}

		return $result;
	}
public function listDirectories ( $ recursive = false , $ showHidden = false ) { $ result = [ ] ; foreach ( $ this -> listAllIterator ( $ recursive , $ showHidden ) as $ element ) { if ( $ element -> isDir ( ) ) { $ result [ ] = $ element -> getFilename ( ) ; } } return $ result ; }
Returns an array with the directories in the current directory.

@param bool $recursive = false
@param bool $showHidden = false
@return string[] an array with the directories in the current directory.
Returns an array with the directories in the current directory .