Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
        }
Beispiel #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);
        }