/// <summary> /// Gets whether the specified file is ignored by the addon's ignore list. /// </summary> /// <param name="path">The file to check.</param> /// <returns>True if the addon is ignored, false if not.</returns> private bool IsIgnored(string path) { foreach (string pattern in Ignores) { if (Whitelist.Check(pattern, path)) { return(true); } } return(false); }
/// <summary> /// Gets whether the specified file is allowed to be in GMAs by the global whitelist. /// </summary> /// <param name="path">The file to check.</param> /// <returns>True if the addon is allowed, false if not.</returns> private bool IsWhitelisted(string path) { return(Whitelist.Check(path.ToLowerInvariant())); }