Ejemplo n.º 1
0
 public static void delTree(string path)
 {
     try
     {
         string[] dirs = Directory.GetDirectories(@path);
         foreach (string dir in dirs)
         {
             DreamTools.delTree(dir);
             //	Directory.Delete (dir);
         }
         dirs = Directory.GetFiles(@path);
         foreach (string dir in dirs)
         {
             //	File.Delete(dir);
         }
     }
     catch (Exception e) { }
 }
Ejemplo n.º 2
0
 public static void EmptyTempDir()
 {
     DreamTools.delTree(DreamTools.GetDirectory(DirType.DataRoot) + "\\temp");
 }