RecursiveDirectoryIterator
extends RecursiveDirectoryIterator
in package
Extends the \RecursiveDirectoryIterator to support relative paths.
Tags
Table of Contents
Properties
- $directorySeparator : string
- $ignoreFirstRewind : bool
- $ignoreUnreadableDirs : bool
- $rootPath : string
- $subPath : string
Methods
- __construct() : mixed
- current() : SplFileInfo
- Return an instance of SplFileInfo with support for relative paths.
- getChildren() : RecursiveDirectoryIterator
- hasChildren() : bool
- next() : void
- rewind() : void
Properties
$directorySeparator
private
string
$directorySeparator
= '/'
$ignoreFirstRewind
private
bool
$ignoreFirstRewind
= true
$ignoreUnreadableDirs
private
bool
$ignoreUnreadableDirs
$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
current()
Return an instance of SplFileInfo with support for relative paths.
public
current() : SplFileInfo
Return values
SplFileInfogetChildren()
public
getChildren() : RecursiveDirectoryIterator
Tags
Return values
RecursiveDirectoryIteratorhasChildren()
public
hasChildren([bool $allowLinks = false ]) : bool
Parameters
- $allowLinks : bool = false
Return values
boolnext()
public
next() : void
rewind()
public
rewind() : void