12 namespace Symfony\Component\Finder\Adapter;
14 use Symfony\Component\Finder\Iterator;
28 $flags = \RecursiveDirectoryIterator::SKIP_DOTS;
30 if ($this->followLinks) {
31 $flags |= \RecursiveDirectoryIterator::FOLLOW_SYMLINKS;
34 $iterator = new \RecursiveIteratorIterator(
36 \RecursiveIteratorIterator::SELF_FIRST
39 if ($this->minDepth > 0 || $this->maxDepth < PHP_INT_MAX) {
51 if ($this->names || $this->notNames) {
55 if ($this->contains || $this->notContains) {
73 $iterator = $iteratorAggregate->getIterator();
76 if ($this->paths || $this->notPaths) {