(PHP 5, PHP 7, PHP 8)
The RecursiveDirectoryIterator provides an interface for iterating recursively over filesystem directories.
$directory
$flags
$allowLinks
false