whole_func_string: function(filePath, opts) {
    if (filePath.isDirectory) {
      return true;
    }
  
    if (!check(opts).has('ignore') || check(opts.ignore).is.not('array')) {
      return false;
    }
  
    return opts.ignore.some(function(directory) {
      return _.isString(directory) && directory === filePath.relative ||
             _.isRegExp(directory) && directory.test(filePath.relative);
    });
  
  }
func_code_string: function(filePath, opts) {
    if (filePath.isDirectory) {
      return true;
    }
  
    if (!check(opts).has('ignore') || check(opts.ignore).is.not('array')) {
      return false;
    }
  
    return opts.ignore.some(function(directory) {
      return _.isString(directory) && directory === filePath.relative ||
             _.isRegExp(directory) && directory.test(filePath.relative);
    });
  
  }
func_documentation_string: /*
  filePathCanBeIgnored
  
  Check if file path can be ignored as needing to contain index file.