Beispiel #1
0
 private static void DeleteDirectories(string[] directories)
 {
     foreach (string directory in directories)
     {
         string[] files = LongDirectory.GetFiles(directory, null, System.IO.SearchOption.TopDirectoryOnly);
         foreach (string file in files)
         {
             LongFile.Delete(file);
         }
         directories = LongDirectory.GetDirectories(directory, null, System.IO.SearchOption.TopDirectoryOnly);
         DeleteDirectories(directories);
         bool ok = NativeMethods.RemoveDirectory(GetWin32LongPath(directory));
         if (!ok)
         {
             ThrowWin32Exception();
         }
     }
 }
Beispiel #2
0
 public static string GetExtension(string path)
 {
     return(LongFile.GetExtension(path));
 }
Beispiel #3
0
 public static string GetParent(string path)
 {
     return(LongFile.GetParent(path));
 }
Beispiel #4
0
 public static string GetName(string path)
 {
     return(LongFile.GetName(path));
 }
Beispiel #5
0
 public static string Combine(string path1, string path2)
 {
     return(LongFile.Combine(path1, path2));
 }