function containsIgnoredPathSegment(absolutePath, cwd, ignoredDirectories) {
  return path.relative(cwd, absolutePath).split(path.sep).some(dir => ignoredDirectories[dir]);
}
@param {string} absolutePath
@param {string} cwd
@param {Record<string, boolean>} ignoredDirectories