Methods |
public
|
in(string ...$dirs): $this
Search in one or more directories
Search in one or more directories
|
#
|
public
|
files(bool $value = true): $this
Find files?
Find files?
Files are returned by default.
|
#
|
public
|
noDirs(): $this
Do not find directories, only files
Do not find directories, only files
This is the default.
|
#
|
public
|
dirs(bool $value = true): $this
Find directories?
Find directories?
Directories are not returned by default.
|
#
|
public
|
noFiles(): $this
Do not find files, only directories
Do not find files, only directories
|
#
|
public
|
dirsFirst(bool $value = true): $this
Return directories before their children?
Return directories before their children?
Directories are returned before their children by default.
Ignored unless directories are returned.
|
#
|
public
|
dirsLast(): $this
Return directories after their children
Return directories after their children
Ignored unless directories are returned.
|
#
|
public
|
recurse(bool $value = true): $this
Recurse into directories?
Recurse into directories?
Recursion into directories is enabled by default.
|
#
|
public
|
doNotRecurse(): $this
Do not recurse into directories
Do not recurse into directories
|
#
|
public
|
exclude(string|(callable(SplFileInfo, string, FilesystemIterator): bool) $value): $this
Exclude files that match a regular expression or satisfy a callback
Exclude files that match a regular expression or satisfy a callback
|
#
|
public
|
include(
string|(callable(SplFileInfo, string, FilesystemIterator, RecursiveIteratorIterator<RecursiveDirectoryIterator|RecursiveCallbackFilterIterator<string, SplFileInfo, RecursiveDirectoryIterator>>|null): bool) $value,
): $this
Include files that match a regular expression or satisfy a callback
Include files that match a regular expression or satisfy a callback
If no regular expressions or callbacks are passed to
{@see RecursiveFilesystemIterator::include()}, all files are included.
|
#
|
public
|
matchRelative(bool $value = true): $this
Match files to exclude and include by their path relative to the
directory being searched?
Match files to exclude and include by their path relative to the
directory being searched?
Full pathnames, starting with directory names passed to
{@see RecursiveFilesystemIterator::in()}, are used for file matching
purposes by default.
|
#
|
public
|
doNotMatchRelative(): $this
Do not match files to exclude and include by relative path
Do not match files to exclude and include by relative path
|
#
|
public
|
count(): int
|
#
|
public
|
getIterator(): Traversable<string, SplFileInfo>
|
#
|
public
|
nextWithValue($key, $value, bool $strict = false)
Get the value of the iterator's first element with a key or property
equal to a given value
Get the value of the iterator's first element with a key or property
equal to a given value
Returns
null if no matching element is found.
Implements
|
#
|