Package PamUtils

Class FolderZipper

java.lang.Object
PamUtils.FolderZipper

public class FolderZipper extends Object
Description of the Class
Author:
cjb22
  • Constructor Details

    • FolderZipper

      public FolderZipper()
  • Method Details

    • zipFolder

      public static void zipFolder(String srcFolder, String destZipFile, boolean useFolderNameAsRootInZip)
      Zip the srcFolder into the destFileZipFile. All the folder subtree of the src folder is added to the destZipFile archive. TODO handle the usecase of srcFolder being en file.
      Parameters:
      srcFolder - String, the path of the srcFolder
      destZipFile - String, the path of the destination zipFile. This file will be created or erased.
      useFolderNameAsRootInZip - Description of the Parameter