RecursiveDirectoryIterator

class RecursiveDirectoryIterator extends RecursiveDirectoryIterator

Extends the \RecursiveDirectoryIterator to support relative paths.

Methods

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

Constructor.

SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths.

RecursiveIterator getChildren()
rewind()

Do nothing for non rewindable stream.

bool isRewindable()

Checks if the stream is rewindable.

Details

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

Constructor.

Parameters

string $path
int $flags
bool $ignoreUnreadableDirs

Exceptions

RuntimeException

SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths.

Return Value

SplFileInfo File information

RecursiveIterator getChildren()

Return Value

RecursiveIterator

Exceptions

AccessDeniedException

rewind()

Do nothing for non rewindable stream.

bool isRewindable()

Checks if the stream is rewindable.

Return Value

bool true when the stream is rewindable, false otherwise
doc_Symfony
2016-10-28 06:28:34
Comments
Leave a Comment

Please login to continue.