TinySite.Commands.LoadDocumentsCommand.IgnoreFile C# (CSharp) Method

IgnoreFile() private method

private IgnoreFile ( string path ) : bool
path string
return bool
        private bool IgnoreFile(string path)
        {
            var filename = Path.GetFileName(path);

            foreach (var ignoreFile in this.IgnoreFiles)
            {
                if (ignoreFile.IsMatch(filename))
                {
                    return true;
                }
            }

            return false;
        }