classDirectoryScan
final class DirectoryScan
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Enumerates regular files while pruning excluded and linked entries.
Methods§
public function files(
string $directory,
list<PathPattern> $includes,
list<PathPattern> $excludes,
): Generator<int, string, null, void>Parameters
$directory | string | Absolute local root |
$includes | list<PathPattern> | Root-relative include patterns |
$excludes | list<PathPattern> | Root-relative exclude patterns |
Returns
Generator<int, string, null, void> Selected paths without reading file contentsTest cases 1
Called from 1
Calls 12
- function-call
rtrimline 27 - new
RecursiveCallbackFilterIteratorline 28 - new
RecursiveDirectoryIteratorline 29 - class-const
RecursiveDirectoryIterator::SKIP_DOTS()line 29 - function-call
substrline 31 - function-call
str_replaceline 31 - method-call
SplFileInfo::getPathname()line 31 - function-call
strlenline 31 - method-call
SplFileInfo::isLink()line 32 - static-call PathPattern::matchesAny() line 33
- method-call
SplFileInfo::isDir()line 34 - new
RecursiveIteratorIteratorline 37
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
FinderTestcalls