boolean
public function accept() {
$current = $this
->getInnerIterator()
->current();
$filename = $current
->getFilename();
$realpath = $current
->getRealPath();
if ($this->basepath !== NULL) {
$realpath = str_replace($this->basepath, '', $realpath);
}
// Filter files in hidden directories.
if (preg_match('=/\\.[^/]*/=', $realpath)) {
return FALSE;
}
return $this
->acceptPath($realpath) && $this
->acceptPrefix($filename) && $this
->acceptSuffix($filename);
}