Iterator\RecursiveDirectoryIterator (Component\Finder)
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.
public SplFileInfo current()
Return an instance of SplFileInfo with support for relative paths.
public RecursiveIterator getChildren()
public rewind()
Do nothing for non rewindable stream.
public bool isRewindable()
Checks if the stream is rewindable.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.html