Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 2
0
 public static string GetExtension(string path)
 {
     return(LongFile.GetExtension(path));
 }
Exemplo n.º 3
0
 public static string GetParent(string path)
 {
     return(LongFile.GetParent(path));
 }
Exemplo n.º 4
0
 public static string GetName(string path)
 {
     return(LongFile.GetName(path));
 }
Exemplo n.º 5
0
 public static string Combine(string path1, string path2)
 {
     return(LongFile.Combine(path1, path2));
 }