private async Task EnsureWindowsFiles() { Log.Verbose("Checking Windows Deployment Files..."); var areValid = await windowsDeployer.AreDeploymentFilesValid(); if (!areValid) { throw new InvalidDeploymentRepositoryException("The Files repository doesn't contain the required files. Please, check that you've installed a valid Driver Package"); } }
private async Task EnsureValidCoreWindowsDeployment() { var windowsValid = await windowsDeployer.AreDeploymentFilesValid(); var driverPaths = new[] { Path.Combine("Files", "Core"), Path.Combine("Files", "UEFI"), Path.Combine("Files", "Drivers"), Path.Combine("Files", "Tools"), }; var coreValid = driverPaths.EnsureExistingPaths(); var isValid = coreValid && windowsValid; if (!isValid) { throw new InvalidDeploymentRepositoryException("The Files repository doesn't contain the required files. Please, check that you've installed a valid Core Package"); } }