The RecursiveDirectoryIterator class

(PHP 5, PHP 7, PHP 8)

简介

The RecursiveDirectoryIterator provides an interface for iterating recursively over filesystem directories.

类摘要

class RecursiveDirectoryIterator extends FilesystemIterator implements SeekableIterator, RecursiveIterator {
/* 继承的常量 */
/* 方法 */
public __construct(string $directory, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO)
public getSubPath(): string
public getSubPathname(): string
public hasChildren(bool $allowLinks = false): bool
public key(): string
public next(): void
public rewind(): void
/* 继承的方法 */
public FilesystemIterator::key(): string
public FilesystemIterator::setFlags(int $flags): void
}

目录