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

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

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

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

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

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