src/File.php
public function listAll($recursive = false, $showHidden = false)
	{
		$result = [];

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

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

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

		return $result;
	}
Returns an array with the files and directories in the current directory.

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