public static function readDirectoryRecursively(string $path, string $suffix = null, bool $returnRealPath = false, bool $returnDotFiles = false): array
    {
        return iterator_to_array(self::getRecursiveDirectoryGenerator($path, $suffix, $returnRealPath, $returnDotFiles));
    }
public static function readDirectoryRecursively(string $path, string $suffix = null, bool $returnRealPath = false, bool $returnDotFiles = false): array
    {
        return iterator_to_array(self::getRecursiveDirectoryGenerator($path, $suffix, $returnRealPath, $returnDotFiles));
    }
public static function readDirectoryRecursively ( string $ path , string $ suffix = null , bool $ returnRealPath = false , bool $ returnDotFiles = false ) : array { return iterator_to_array ( self :: getRecursiveDirectoryGenerator ( $ path , $ suffix , $ returnRealPath , $ returnDotFiles ) ) ; }
Returns all filenames from the specified directory. Filters hidden files and
directories.

@param string $path Path to the directory which shall be read
@param string $suffix If specified, only filenames with this extension are returned (eg. ".php" or "foo.bar")
@param boolean $returnRealPath If turned on, all paths are resolved by calling realpath()
@param boolean $returnDotFiles If turned on, also files beginning with a dot will be returned
@return array Filenames including full path
@api
Returns all filenames from the specified directory . Filters hidden files and directories .