\Symfony\Component\Finder\IteratorRecursiveDirectoryIterator

Extends the \RecursiveDirectoryIterator to support relative paths.

Summary

Methods
Properties
Constants
__construct()
current()
hasChildren()
getChildren()
rewind()
isRewindable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$ignoreUnreadableDirs
$rewindable
$rootPath
$subPath
$directorySeparator
N/A

Properties

$ignoreUnreadableDirs

$ignoreUnreadableDirs : bool

Type

bool

$rewindable

$rewindable : bool

Type

bool

$rootPath

$rootPath

$subPath

$subPath

$directorySeparator

$directorySeparator

Methods

__construct()

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

Parameters

string $path
int $flags
bool $ignoreUnreadableDirs

Throws

\RuntimeException

Returns

mixed —

current()

current() : \Symfony\Component\Finder\SplFileInfo

Return an instance of SplFileInfo with support for relative paths.

Returns

\Symfony\Component\Finder\SplFileInfo —

hasChildren()

hasChildren(bool  $allowLinks = false) : bool

Parameters

bool $allowLinks

Returns

bool —

getChildren()

getChildren() : \RecursiveDirectoryIterator

Throws

\Symfony\Component\Finder\Exception\AccessDeniedException

Returns

\RecursiveDirectoryIterator —

rewind()

rewind() : void

Do nothing for non rewindable stream.

isRewindable()

isRewindable() : bool

Checks if the stream is rewindable.

Returns

bool —