private void AskForTargetDirectory() { do { _log.LogInformation("Please input the directory where you would like new dataset to be output."); var outputPath = Console.ReadLine(); var fileExists = _directoryValidator.DirectoryExists(outputPath); if (!fileExists) { _log.LogInformation("Directory does not exist."); _log.LogInformation("Try another path\n"); } else { _jobState.SetOutputPath(outputPath); break; } } while (true); }