RecursiveDirectoryIterator

class RecursiveDirectoryIterator extends RecursiveDirectoryIterator

Extends the \RecursiveDirectoryIterator to support relative paths.

Methods

__construct(string $path, int $flags, bool $ignoreUnreadableDirs = false)
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)

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.html