Package io.hawt.util

Class Files


  • public class Files
    extends Object
    • Constructor Detail

      • Files

        public Files()
    • Method Detail

      • recursiveDelete

        public static int recursiveDelete​(File file)
        Recursively deletes the given file whether its a file or directory returning the number of files deleted
      • getMimeType

        public static String getMimeType​(File file)
      • assertExists

        public static void assertExists​(File file)
        Throws an exception if the given file or directory does not exist
      • assertFileExists

        public static void assertFileExists​(File file)
        Throws an exception if the given file does not exist
      • assertDirectoryExists

        public static void assertDirectoryExists​(File file)
        Throws an exception if the given file does not exist