protected function _filterFile(SplFileInfo $fileInfo)
    {
        if (!$fileInfo->isFile()) {
            return false;
        }

        if (($expr = $this->_getFilenameRegex()) && !preg_match($expr, $fileInfo->getPathname())) {
            return false;
        }

        if (($callback = $this->_getCallbackFilter()) && !call_user_func_array($callback, array($fileInfo))) {
            return false;
        }

        return true;
    }
protected function _filterFile(SplFileInfo $fileInfo)
    {
        if (!$fileInfo->isFile()) {
            return false;
        }

        if (($expr = $this->_getFilenameRegex()) && !preg_match($expr, $fileInfo->getPathname())) {
            return false;
        }

        if (($callback = $this->_getCallbackFilter()) && !call_user_func_array($callback, array($fileInfo))) {
            return false;
        }

        return true;
    }
protected function _filterFile ( SplFileInfo $ fileInfo ) { if ( ! $ fileInfo -> isFile ( ) ) { return false ; } if ( ( $ expr = $ this -> _getFilenameRegex ( ) ) && ! preg_match ( $ expr , $ fileInfo -> getPathname ( ) ) ) { return false ; } if ( ( $ callback = $ this -> _getCallbackFilter ( ) ) && ! call_user_func_array ( $ callback , array ( $ fileInfo ) ) ) { return false ; } return true ; }
Determines whether or not a file is allowed to be "found".

@since [*next-version*]

@param SplFileInfo $fileInfo The object that represents information about a file.

@return bool True if the file is allowed; false otherwise.
Determines whether or not a file is allowed to be found .