Symfony2 API
Class

Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator

class RecursiveDirectoryIterator extends RecursiveDirectoryIterator

Extends the \RecursiveDirectoryIterator to support relative paths

Methods

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

Constructor.

SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths

RecursiveIterator getChildren()

rewind()

Do nothing for non rewindable stream

Boolean isRewindable()

Checks if the stream is rewindable.

Details

at line 43
public __construct(string $path, int $flags, boolean $ignoreUnreadableDirs = false)

Constructor.

Parameters

string $path
int $flags
boolean $ignoreUnreadableDirs

Exceptions

RuntimeException

at line 58
public SplFileInfo current()

Return an instance of SplFileInfo with support for relative paths

Return Value

SplFileInfo File information

at line 68
public RecursiveIterator getChildren()

Return Value

RecursiveIterator

Exceptions

AccessDeniedException

at line 85
public rewind()

Do nothing for non rewindable stream

at line 102
public Boolean isRewindable()

Checks if the stream is rewindable.

Return Value

Boolean true when the stream is rewindable, false otherwise