function buildExceptionChecker(ignore) {
  if (ignore instanceof RegExp)
    return filepath => ignore.test(filepath);

  if (typeof ignore === 'string')
    return filepath => globToRegex(ignore).test(filepath);

  return ignore || negate(identity);
}
@param  {function|regex|string} ignore glob, regex or function
@return {function}