Пример #1
0
        /// <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);
        }
Пример #2
0
 /// <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()));
 }