Class Zip

java.lang.Object
group24.escaperoom.utils.Zip

public class Zip extends Object
  • Constructor Details

    • Zip

      public Zip()
  • Method Details

    • CreateArchive

      public static boolean CreateArchive(String filepath)
      Create a zip archive of the given filepath. Accepts folders or files. Creates the zip archive in the same directory as the source, with the same name as the source but with the extention set to `.zip` Returns true if successful, false otherwise
    • UnpackArchive

      public static boolean UnpackArchive(String filepath, File destination)
      Unzip the given archive into given destination. It is assumed that the destination is a directory which exists. Returns true if successful, false otherwise