if ($this->filters
) { $iterator =
new Iterator\
CustomFilterIterator($iterator,
$this->filters
);
} if ($this->paths ||
$notPaths) { $iterator =
new Iterator\
PathFilterIterator($iterator,
$this->paths,
$notPaths);
} if (static::IGNORE_VCS_IGNORED_FILES
=== (static::IGNORE_VCS_IGNORED_FILES &
$this->ignore
)) { $iterator =
new Iterator\
VcsIgnoredFilterIterator($iterator,
$dir);
} return $iterator;
} /**
* Normalizes given directory names by removing trailing slashes.
*
* Excluding: (s)ftp:// or ssh2.(s)ftp:// wrapper
*/
private function normalizeDir(string
$dir): string
{