(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Recorre un sistema de ficheros, de manera similar a la función glob().
$pattern
, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObject