Ejemplo n.º 1
0
 /// <summary>
 /// 删除目录
 /// </summary>
 /// <param name="path"></param>
 public static void Delete(string path)
 {
     if (Directory.Exists(path))
     {
         Directory.Delete(path);
     }
 }
Ejemplo n.º 2
0
        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);
 }