(PHP 5, PHP 7, PHP 8)
The RecursiveDirectoryIterator provides an interface for iterating recursively over filesystem directories.
$directory
, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObject