Package de.willuhn.io

Class FileUtil


  • public class FileUtil
    extends java.lang.Object
    Hilfsklasse mit diversen statischen Funktionen.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean deleteRecursive​(java.io.File dir)
      Loescht ein Verzeichnis rekursiv.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • deleteRecursive

        public static boolean deleteRecursive​(java.io.File dir)
                                       throws java.io.IOException
        Loescht ein Verzeichnis rekursiv.
        Parameters:
        dir - das rekursiv zu loeschende Verzeichnis.
        Returns:
        true, wenn das Verzeichnis korrekt geloescht werden konnte.
        Throws:
        java.io.IOException - wenn beim Loeschen ein Fehler auftrat.