A classe RecursiveDirectoryIterator

(PHP 5, PHP 7, PHP 8)

Introdução

O RecursiveDirectoryIterator fornece uma interface para iterar de forma recursiva sobre diretórios do sistema de arquivos.

Resumo da classe

class RecursiveDirectoryIterator extends FilesystemIterator implements RecursiveIterator {
/* Constantes herdadas */
/* Métodos */
public __construct(string $directory, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)
public getSubPath(): string
public hasChildren(bool $allowLinks = false): bool
public key(): string
public next(): void
public rewind(): void
/* Métodos herdados */
public SplFileInfo::getBasename(string $suffix = ""): string
public SplFileInfo::openFile(string $mode = "r", bool $useIncludePath = false, ?resource $context = null): SplFileObject
public SplFileInfo::setFileClass(string $class = SplFileObject::class): void
public SplFileInfo::setInfoClass(string $class = SplFileInfo::class): void
}

Table of Contents