ZeroInstall.Services.Solvers.SelectionCandidateProvider.GetSitePackagePaths C# (CSharp) Method

GetSitePackagePaths() private static method

private static GetSitePackagePaths ( FeedUri interfaceUri ) : IEnumerable
interfaceUri FeedUri
return IEnumerable
        private static IEnumerable<FeedUri> GetSitePackagePaths(FeedUri interfaceUri)
        {
            var sitePackageDirs = Locations.GetLoadDataPaths("0install.net", isFile: false, resource: interfaceUri.EscapeComponent().Prepend("site-packages"));
            var subDirectories = sitePackageDirs.SelectMany(x => new DirectoryInfo(x).GetDirectories());
            return
                from dir in subDirectories
                let path = Path.Combine(dir.FullName, "0install" + Path.DirectorySeparatorChar + "feed.xml")
                where File.Exists(path)
                select new FeedUri(path);
        }