/*
filePathCanBeIgnored

Check if file path can be ignored as needing to contain index file.
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);
  });

}