Skip to content

Commit

Permalink
Revert "minor #50885 [Finder] Fix children condition in ExcludeDirect…
Browse files Browse the repository at this point in the history
…oryFilterIterator (mvorisek)"

This reverts commit 9c1dedbc1ce884618e806112c1d9ef8324d77dc9, reversing
changes made to 9cbdfc64e0c4edd520511e1c16c5de2ef151aefa.
  • Loading branch information
derrabus committed Jul 31, 2023
1 parent 01ef6b2 commit ff4bce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Iterator/ExcludeDirectoryFilterIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(\Iterator $iterator, array $directories)
#[\ReturnTypeWillChange]
public function accept()
{
if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) {
if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
return false;
}

Expand Down

0 comments on commit ff4bce3

Please sign in to comment.