class RecursiveDirectoryIterator extends RecursiveDirectoryIterator

Extends the \RecursiveDirectoryIterator to support relative paths.

Methods

__construct(string $path, int $flags, bool $ignoreUnreadableDirs = false)

Constructor.

current()

Return an instance of SplFileInfo with support for relative paths.

getChildren()

No description

rewind()

Do nothing for non rewindable stream.

bool
isRewindable()

Checks if the stream is rewindable.

Details

at line line 48
__construct(string $path, int $flags, bool $ignoreUnreadableDirs = false)

Constructor.

Parameters

string $path
int $flags
bool $ignoreUnreadableDirs

Exceptions

RuntimeException

at line line 67
SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths.

Return Value

SplFileInfo File information

at line line 87
RecursiveIterator getChildren()

Return Value

RecursiveIterator

Exceptions

AccessDeniedException

at line line 115
rewind()

Do nothing for non rewindable stream.

at line line 132
bool isRewindable()

Checks if the stream is rewindable.

Return Value

bool true when the stream is rewindable, false otherwise