class CustomFilterIterator extends FilterIterator
CustomFilterIterator filters files by applying anonymous functions.
The anonymous function receives a \SplFileInfo and must return false to remove files.
This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.
Filters the iterator values.