public function paths(array $patterns) { $filter = new Iterator\PathFilterIterator($this->getIterator(), $patterns, []); return new FilesCollection(iterator_to_array($filter)); }