Bloom.Collection.BookCollection.LoadBooks C# (CSharp) Method

LoadBooks() private method

private LoadBooks ( ) : void
return void
        private void LoadBooks()
        {
            _bookInfos = new List<Book.BookInfo>();
            var bookFolders =  new DirectoryInfo(_path).GetDirectories();//although NTFS may already sort them, that's an implementation detail
            //var orderedBookFolders = bookFolders.OrderBy(f => f.Name);
            var orderedBookFolders = bookFolders.OrderBy(f => f.Name, new NaturalSortComparer<string>());
            foreach (var folder in orderedBookFolders)
            {
                if (Path.GetFileName(folder.FullName).StartsWith("."))//as in ".hg"
                    continue;
                if (Path.GetFileName(folder.FullName).ToLowerInvariant().Contains("xmatter"))
                    continue;
                if(RobustFile.Exists(Path.Combine(folder.FullName, ".bloom-ignore")))
                    continue;
                AddBookInfo(folder.FullName);
            }
        }