Class FileUtil


  • public class FileUtil
    extends java.lang.Object
    Utility methods for operations on Files.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteDir​(java.io.File dir)
      Deletes the specified directory and any files and directories in it recursively.
      • 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

      • deleteDir

        public static void deleteDir​(java.io.File dir)
                              throws java.io.IOException
        Deletes the specified directory and any files and directories in it recursively.
        Parameters:
        dir - The directory to remove.
        Throws:
        java.io.IOException - If the directory could not be removed.