diff --git a/QuestValidator.Common/Helpers/DiskHelpers.cs b/QuestValidator.Common/Helpers/DiskHelpers.cs index 1a19c25..638f894 100644 --- a/QuestValidator.Common/Helpers/DiskHelpers.cs +++ b/QuestValidator.Common/Helpers/DiskHelpers.cs @@ -1,5 +1,4 @@ -using System; -using System.IO; +using System.IO; namespace QuestValidator.Helpers { @@ -18,5 +17,15 @@ namespace QuestValidator.Helpers { return Directory.GetFiles(path, "*.json", SearchOption.TopDirectoryOnly); } + + public static string CreateWorkingFolders() + { + var workingPath = Directory.GetCurrentDirectory(); + // create input folder + var inputPath = $"{workingPath}//input"; + DiskHelpers.CreateDirIfDoesntExist(inputPath); + + return inputPath; + } } } diff --git a/QuestValidator/Program.cs b/QuestValidator/Program.cs index 395a3da..dd7e1e0 100644 --- a/QuestValidator/Program.cs +++ b/QuestValidator/Program.cs @@ -13,7 +13,7 @@ namespace QuestValidator { static void Main(string[] args) { - var inputPath = CreateWorkingFolders(); + var inputPath = DiskHelpers.CreateWorkingFolders(); InputFileHelper.SetInputFiles(inputPath); //read in quest file @@ -376,15 +376,5 @@ namespace QuestValidator } } } - - private static string CreateWorkingFolders() - { - var workingPath = Directory.GetCurrentDirectory(); - // create input folder - var inputPath = $"{workingPath}//input"; - DiskHelpers.CreateDirIfDoesntExist(inputPath); - - return inputPath; - } } }