Umbraco.Belle.System.ManifestParser.GetAllManfifestFileContents C# (CSharp) Method

GetAllManfifestFileContents() private method

Get the file contents from all declared manifest files
private GetAllManfifestFileContents ( DirectoryInfo currDir ) : IEnumerable
currDir System.IO.DirectoryInfo
return IEnumerable
        private IEnumerable<string> GetAllManfifestFileContents(DirectoryInfo currDir)
        {
            var depth = FolderDepth(_pluginsDir, currDir);

            if (depth < 1)
            {
                var dirs = currDir.GetDirectories();
                var result = new List<string>();
                foreach (var d in dirs)
                {
                    result.AddRange(GetAllManfifestFileContents(d));
                }
                return result;
            }

            //look for files here
            return currDir.GetFiles("Package.manifest")
                          .Select(f => File.ReadAllText(f.FullName))
                          .ToList();

            return Enumerable.Empty<string>();
        }