public static void CreateCleanTempFolder(string newDir) { if (Directory.Exists(newDir)) { FileFolderHelper.CleanFolder(newDir); } else { FileFolderHelper.CreateDirectory(newDir); } }
/// <summary> /// Reads in a list of files from a folder /// </summary> /// <returns>the list of file names from the folder passed in</returns> private List <string> Pass1() { //read in the input folder List <string> files = FileFolderHelper.GetFilesInfolder(inputfolder); foreach (string file in files) { FileInfo fi = new FileInfo(file); pass1Files.Add(fi); } return(files); }