Class FileUtil

java.lang.Object
com.bluebell.greenhouse.platform.util.file.FileUtil

public final class FileUtil extends Object
Utility class for File system operations.
Version:
1.0.1
Author:
Stephen Prizio
  • Method Details

    • unzipFile

      public static File unzipFile(String pathToZip, String destinationDirectory) throws IOException
      Unzips the file to the given destination directory.
      Parameters:
      pathToZip - path to zip
      destinationDirectory - destination
      Returns:
      directory containing the zipped file
      Throws:
      IOException - io exception
    • isValidCsvFile

      public static boolean isValidCsvFile(File file, char delimiter)
      Validates the given File is valid csv with a variable delimiter.
      Parameters:
      file - File
      delimiter - delimiter
      Returns:
      true if valid