The RecursiveDirectoryIterator class
(PHP 5, PHP 7, PHP 8)
Einführung
The RecursiveDirectoryIterator provides an interface for iterating recursively over filesystem directories.
Klassenbeschreibung
$directory
, int $flags
= FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObjectInhaltsverzeichnis
- RecursiveDirectoryIterator::__construct — Constructs a RecursiveDirectoryIterator
- RecursiveDirectoryIterator::getChildren — Returns an iterator for the current entry if it is a directory
- RecursiveDirectoryIterator::getSubPath — Get sub path
- RecursiveDirectoryIterator::getSubPathname — Get sub path and name
- RecursiveDirectoryIterator::hasChildren — Returns whether current entry is a directory and not '.' or '..'
- RecursiveDirectoryIterator::key — Return path and filename of current dir entry
- RecursiveDirectoryIterator::next — Zum nächsten Eintrag bewegen
- RecursiveDirectoryIterator::rewind — Rewind dir back to the start