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