Class FSUtils


  • public final class FSUtils
    extends Object
    • Constructor Detail

      • FSUtils

        public FSUtils()
    • Method Detail

      • directoryCheck

        public static void directoryCheck​(String dir)
                                   throws IOException
        Checks the existence of the directory. If it does not exist, the method creates it.
        Parameters:
        dir - the directory to check.
        Throws:
        IOException - if fails.
      • checkFolderForFile

        public static void checkFolderForFile​(String fileName)
                                       throws IOException
        Checks whether the folder exists for fileName, and creates it if necessary.
        Parameters:
        fileName - folder name.
        Throws:
        IOException - an IO exception.