(PHP 5, PHP 7, PHP 8)
The RecursiveDirectoryIterator provides an interface for iterating recursively over filesystem directories.
$path
, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO
)$path
, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS
)