private static void RemoveDirectory(string path) { if (Directory.Exists(path)) { Directory.Delete(path, true); } }