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