public bool IsExcludedPath(string relativePath) { return excludes.Contains(relativePath) || excludes.Any(e => relativePath.StartsWith(e)); }