public bool PathIsExcluded(string path)
 {
     return(ExcludedDirNames.Any(s => PathContains(path, s)));
 }
 public static bool PathIsExcluded(string path)
 {
     // subDir is a full path, check all parts
     return(ExcludedDirNames.Any(s => PathContains(path, s)));
 }