We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1989b02 + 9915db2 commit b947e42Copy full SHA for b947e42
Iterator/ExcludeDirectoryFilterIterator.php
@@ -59,7 +59,7 @@ public function __construct(\Iterator $iterator, array $directories)
59
*/
60
public function accept(): bool
61
{
62
- if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) {
+ if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
63
return false;
64
}
65
0 commit comments