/// <summary> /// 删除目录 /// </summary> /// <param name="path"></param> public static void Delete(string path) { if (Directory.Exists(path)) { Directory.Delete(path); } }
public void Cleanup() { var dir = Path.GetDirectoryName(m_UserSettingsRepo.path); if (Directory.Exists(dir)) { Directory.Delete(dir); } }
public void TearDown() { Directory.Delete(_dirThree); Directory.Delete(_dirTwo); Directory.Delete(_dirOne); }