public static void ExistsChecksums(string path) { if (Directory.Exists(path)) { if (!File.Exists(path + file)) { CreateChecksumsFile(path, file); } } else { // Try to create the directory. DirectoryInfo di = Directory.CreateDirectory(path); Checksums.ExistsChecksums(path); } }
public static void CreateFolderChecksum(string path, string pathChecksum) { // Specify the directory you want to manipulate. try { // Determine whether the directory exists. if (Directory.Exists(path + pathChecksum)) { Checksums.ExistsChecksums(path + pathChecksum); } else { // Try to create the directory. DirectoryInfo di = Directory.CreateDirectory(path + pathChecksum); Checksums.ExistsChecksums(path + pathChecksum); } } finally { } }