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

$directorystringAbsolute local root
$includeslist<PathPattern>Root-relative include patterns
$excludeslist<PathPattern>Root-relative exclude patterns

Returns

Generator<int, string, null, void> Selected paths without reading file contents
Test cases 1
Called from 1
Calls 12

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

Relations§

Instantiated in 1
Method calls 1