Class DepthFilterIterator
Filters files by directory depth.
Uses DepthOperator enum for comparison:
- EQUAL: Depth must equal value
- NOT_EQUAL: Depth must not equal value
- LESS_THAN: Depth must be less than value
- LESS_THAN_OR_EQUAL: Depth must be <= value
- GREATER_THAN: Depth must be greater than value
- GREATER_THAN_OR_EQUAL: Depth must be >= value
Method Summary
-
__construct() public
-
accept() public
Method Detail
__construct() ¶ public
__construct(Iterator $iterator, Cake\Utility\Fs\Enum\DepthOperator $operator, int $value)
Parameters
-
Iterator$iterator The iterator to filter (typically RecursiveIteratorIterator)
-
Cake\Utility\Fs\Enum\DepthOperator$operator Comparison operator
-
int$value Depth value to compare against