Пример #1
0
 private FilePath?FindEntriesPath(FilePath jamDirectoryPath)
 {
     return(FilesystemSearch.ForDirectoriesIn(jamDirectoryPath)
            .FindMatches("Entries")
            .ElseFindMatches("*Entries*")
            .FirstOrDefault());
 }
Пример #2
0
        private IEnumerable <JamEntryStub> FindEntriesStubs(FilePath entriesPath)
        {
            var jamEntries = FilesystemSearch.ForDirectoriesIn(entriesPath)
                             .FindAll()
                             .FoundPaths;

            foreach (var jamEntryPath in jamEntries)
            {
                var subpath = jamEntryPath.AsRelativeTo(entriesPath);
                yield return(new JamEntryStub
                {
                    Id = subpath.Value,
                    EntrySubpath = subpath.Value,
                });
            }
        }