Ejemplo n.º 1
0
 public static void Move(string srcpath, string destpath)
 {
     StackTrace trace = new StackTrace();
     DeleteHistory delete = new DeleteHistory();
     delete.path = srcpath;
     delete.path2 = destpath;
     delete.traceinfo = trace.ToString();
     historys.Add(delete);
     System.IO.Directory.Move(srcpath, destpath);
 }
Ejemplo n.º 2
0
 public static void Delete(string path)
 {
     StackTrace trace = new StackTrace();
     DeleteHistory delete = new DeleteHistory();
     delete.path = path;
     delete.path2 = "";
     delete.traceinfo = trace.ToString();
     historys.Add(delete);
     System.IO.Directory.Delete(path);
 }
Ejemplo n.º 3
0
        public static void Move(string srcpath, string destpath)
        {
            StackTrace    trace  = new StackTrace();
            DeleteHistory delete = new DeleteHistory();

            delete.path      = srcpath;
            delete.path2     = destpath;
            delete.traceinfo = trace.ToString();
            historys.Add(delete);
            System.IO.Directory.Move(srcpath, destpath);
        }
Ejemplo n.º 4
0
        public static void Delete(string path)
        {
            StackTrace    trace  = new StackTrace();
            DeleteHistory delete = new DeleteHistory();

            delete.path      = path;
            delete.path2     = "";
            delete.traceinfo = trace.ToString();
            historys.Add(delete);
            System.IO.Directory.Delete(path);
        }