public IEnumerable <FirmwareDefinition> LoadAll() { var result = new List <FirmwareDefinition>(); var files = Directory.GetFiles(NFEPaths.DefinitionsDirectory, Consts.DefinitionFileExtension, SearchOption.AllDirectories); foreach (var filePath in files) { var definition = TryLoad(filePath); if (definition == null) { continue; } definition.FileName = Path.GetFileName(filePath); definition.Sha = GitHubApi.GetGitSha(filePath); result.Add(definition); } return(result); }