RecursiveDirectoryIterator
extends RecursiveDirectoryIterator
in package
Extends the \RecursiveDirectoryIterator to support relative paths.
Tags
Table of Contents
Properties
- $directorySeparator : mixed
- $ignoreUnreadableDirs : bool
- $rewindable : bool
- $rootPath : mixed
- $subPath : mixed
Methods
- __construct() : mixed
- current() : SplFileInfo
- Return an instance of SplFileInfo with support for relative paths.
- getChildren() : RecursiveIterator
- isRewindable() : bool
- Checks if the stream is rewindable.
- rewind() : void
- Do nothing for non rewindable stream.
Properties
$directorySeparator
private
mixed
$directorySeparator
= '/'
$ignoreUnreadableDirs
private
bool
$ignoreUnreadableDirs
$rewindable
private
bool
$rewindable
$rootPath
private
mixed
$rootPath
$subPath
private
mixed
$subPath
Methods
__construct()
public
__construct(string $path, int $flags[, bool $ignoreUnreadableDirs = false ]) : mixed
Parameters
- $path : string
- $flags : int
- $ignoreUnreadableDirs : bool = false
Tags
current()
Return an instance of SplFileInfo with support for relative paths.
public
current() : SplFileInfo
Attributes
Return values
SplFileInfo —File information
getChildren()
public
getChildren() : RecursiveIterator
Tags
Attributes
Return values
RecursiveIteratorisRewindable()
Checks if the stream is rewindable.
public
isRewindable() : bool
Return values
bool —true when the stream is rewindable, false otherwise
rewind()
Do nothing for non rewindable stream.
public
rewind() : void