W3cubDocs

/Symfony 3.0

Symfony\Component\Finder\Iterator\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

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

Constructor.

Parameters

string $path
int $flags
bool $ignoreUnreadableDirs

Exceptions

RuntimeException

public SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths.

Return Value

SplFileInfo File information

public RecursiveIterator getChildren()

Return Value

RecursiveIterator

Exceptions

AccessDeniedException

public rewind()

Do nothing for non rewindable stream.

public bool isRewindable()

Checks if the stream is rewindable.

Return Value

bool true when the stream is rewindable, false otherwise

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