[Finder] fixed a problem on Windows
This commit is contained in:
parent
ec066a0843
commit
e093387179
@ -48,9 +48,9 @@ class ExcludeDirectoryFilterIterator extends \FilterIterator
|
||||
$inner = $inner->getInnerIterator();
|
||||
}
|
||||
|
||||
$method = $inner->current()->isDir() ? 'getSubPathname' : 'getSubPath';
|
||||
foreach ($this->patterns as $pattern) {
|
||||
$method = $inner->current()->isDir() ? 'getSubPathname' : 'getSubPath';
|
||||
if (preg_match($pattern, $this->getInnerIterator()->$method())) {
|
||||
if (preg_match($pattern, strtr($this->getInnerIterator()->$method(), '\\', '/'))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user