Skip to content

Commit b947e42

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Revert "minor #50885 [Finder] Fix children condition in ExcludeDirectoryFilterIterator (mvorisek)"
2 parents 1989b02 + 9915db2 commit b947e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Iterator/ExcludeDirectoryFilterIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(\Iterator $iterator, array $directories)
5959
*/
6060
public function accept(): bool
6161
{
62-
if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) {
62+
if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
6363
return false;
6464
}
6565

0 commit comments

Comments
 (0)