Merge pull request #235 from nextcloud/enh/fix-call-get-filename
There is no getFilename and isDir on RecursiveFilterIterator
This commit is contained in:
commit
50bdca3197
|
@ -45,7 +45,7 @@ class RecursiveDirectoryIteratorWithoutData extends \RecursiveFilterIterator {
|
|||
'data',
|
||||
'..',
|
||||
];
|
||||
return !(in_array($this->getFilename(), $excludes, true) || $this->isDir());
|
||||
return !(in_array($this->current()->getFilename(), $excludes, true) || $this->current()->isDir());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,6 @@ class RecursiveDirectoryIteratorWithoutData extends \RecursiveFilterIterator {
|
|||
'data',
|
||||
'..',
|
||||
];
|
||||
return !(in_array($this->getFilename(), $excludes, true) || $this->isDir());
|
||||
return !(in_array($this->current()->getFilename(), $excludes, true) || $this->current()->isDir());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue