Ejemplo n.º 1
0
 public void Clear(string Root)
 {
     this.Clear_Data(Root);
     this.Clear_Output(Root);
     this.Remove_Source(Root);
     Directory_Class.Delete_Files(Root);
 }
Ejemplo n.º 2
0
        public void Clear_Prep()
        {
            Directory.CreateDirectory(Data);
            Directory_Class.Delete_Files(Data);

            Directory.CreateDirectory(Output);
            Directory_Class.Delete_Files(Output);

            Directory.CreateDirectory(Source);
            Directory_Class.deleteSub(Source);
            new DirectoryInfo(Source).Delete(true);

            Directory_Class.Delete_Files(Prep);
        }
Ejemplo n.º 3
0
        public static void deleteSub(string Root)
        {
            DirectoryInfo directoryInfo1 = new DirectoryInfo(Root);

            DirectoryInfo[] directories = directoryInfo1.GetDirectories();
            FileInfo[]      files       = directoryInfo1.GetFiles();
            foreach (DirectoryInfo directoryInfo2 in directories)
            {
                Directory_Class.deleteSub(directoryInfo2.FullName);
                int num = 1;
                directoryInfo2.Delete(num != 0);
            }
            Directory_Class.Delete_Files(files);
        }
Ejemplo n.º 4
0
 public static void Delete_Files(string Root)
 {
     Directory_Class.Delete_Files(new DirectoryInfo(Root).GetFiles());
 }
Ejemplo n.º 5
0
 public static void Delete_Directory(string Root)
 {
     Directory_Class.deleteSub(Root);
     Directory.Delete(Root);
 }
Ejemplo n.º 6
0
 private void Remove_Source(string Root)
 {
     Directory.CreateDirectory(Root + "\\" + this.Source_Directory);
     Directory_Class.deleteSub(Root + "\\" + this.Source_Directory);
     new DirectoryInfo(Root + "\\" + this.Source_Directory).Delete(true);
 }
Ejemplo n.º 7
0
 private void Clear_Output(string Root)
 {
     Directory.CreateDirectory(Root + "\\" + this.Output_Directory);
     Directory_Class.Delete_Files(Root + "\\" + this.Output_Directory);
 }