Class FileHelpers


  • public class FileHelpers
    extends java.lang.Object
    Extension methods to the java.io.File class.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileHelpers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean deleteFileOrDirectory​(java.io.File file)
      Deletes the given file or directory.
      • Methods inherited from class java.lang.Object

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

      • FileHelpers

        public FileHelpers()
    • Method Detail

      • deleteFileOrDirectory

        public static boolean deleteFileOrDirectory​(java.io.File file)
        Deletes the given file or directory. If a directory, recursively deletes all sub-directories and files.
        Parameters:
        file - The target to delete.
        Returns:
        True if the target was deleted, false otherwise.