public IEnumerable <string> DetermineDocumentsFolders() { if (DirectoryFlag.IsNotEmpty()) { return(new[] { DirectoryFlag }); } return(TopicLoader.FindDocumentDirectories(Environment.CurrentDirectory)); }
public IEnumerable <IPackageInfo> Load(IPackageLog log) { var reader = new PackageManifestReader(new FileSystem(), folder => folder); var docDirs = TopicLoader.FindDocumentDirectories(_directory); return(docDirs .Where(BottlesFilter.ShouldLoad) .SelectMany(dir => loadPackageFromDirectory(dir, reader))); }