public static void createOutputDirectories(List <recordConfig> configArr, userConfig uConfig, string bucketName, string resultsPath) { string MainFolderName = Form1.MainFolderName; foreach (recordConfig t in configArr) { if (!Form1.UseS3 && !Directory.Exists(MainFolderName + "\\" + t.getShortName())) { Directory.CreateDirectory(MainFolderName + "\\" + t.getShortName()); StreamWriter sw = new StreamWriter(MainFolderName + "\\" + t.getShortName() + "\\record_properties.txt", false); sw.WriteLine(t.getFullName()); sw.Close(); uConfig.printConfig(MainFolderName + "\\config.txt"); } // if (!Form1.UseS3) continue; /* S3DirectoryInfo s3results_path_with_folders = * new S3DirectoryInfo(client, bucketName, resultsPath + "\\" + t.getShortName()); * if (!s3results_path_with_folders.Exists) * { * s3results_path_with_folders.Create(); * S3FileInfo outFile = s3results_path_with_folders.GetFile("record_properties.txt"); * StreamWriter sw = new StreamWriter(outFile.OpenWrite()); * sw.WriteLine(t.getFullName()); * sw.Close(); * * S3FileInfo configFile = s3results_path_with_folders.GetFile("config.txt"); * uConfig.printConfig("", configFile); * }*/ } }