OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
symfony
/
finder
/
Iterator
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:33:59 AM
rwxr-xr-x
📄
CustomFilterIterator.php
1.55 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
DateRangeFilterIterator.php
1.42 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
DepthRangeFilterIterator.php
1.39 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
ExcludeDirectoryFilterIterator.php
3.38 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
FileTypeFilterIterator.php
1.41 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
FilecontentFilterIterator.php
1.44 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
FilenameFilterIterator.php
1.12 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
LazyIterator.php
718 bytes
08/07/2024 04:33:59 AM
rw-r--r--
📄
MultiplePcreFilterIterator.php
3.18 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
PathFilterIterator.php
1.44 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
RecursiveDirectoryIterator.php
4.06 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
SizeRangeFilterIterator.php
1.38 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
SortableIterator.php
4.64 KB
08/07/2024 04:33:59 AM
rw-r--r--
📄
VcsIgnoredFilterIterator.php
4.78 KB
08/07/2024 04:33:59 AM
rw-r--r--
Editing: DepthRangeFilterIterator.php
Close
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Iterator; /** * DepthRangeFilterIterator limits the directory depth. * * @author Fabien Potencier <fabien@symfony.com> * * @template-covariant TKey * @template-covariant TValue * * @extends \FilterIterator<TKey, TValue> */ class DepthRangeFilterIterator extends \FilterIterator { private int $minDepth = 0; /** * @param \RecursiveIteratorIterator<\RecursiveIterator<TKey, TValue>> $iterator The Iterator to filter * @param int $minDepth The min depth * @param int $maxDepth The max depth */ public function __construct(\RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = \PHP_INT_MAX) { $this->minDepth = $minDepth; $iterator->setMaxDepth(\PHP_INT_MAX === $maxDepth ? -1 : $maxDepth); parent::__construct($iterator); } /** * Filters the iterator values. */ public function accept(): bool { return $this->getInnerIterator()->getDepth() >= $this->minDepth; } }