Class FileUtil


  • public class FileUtil
    extends Object
    Utility methods for operations on Files.
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • deleteDir

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