Zip File Utilities

Overview

Validate the file extensions in an uploaded zip file and unzip the contents into the target folder.

Key Features & Functionality

Smart Services

  • Unzip: Unzip the contents of a zip file into the selected destination folder
  • Zip File Detection: Check whether a zip package contains files with the provided extensions
  • Extract File from Zip: Extract a given file path from a ZIP or JAR, renaming and moving the file as needed

Functions

  • doesZipContain: Checks whether a ZIP or JAR contains a specific file path, either by exact match or Regex
Anonymous
Parents
  • Hi,

    The UnZip smart service has a problem when the ZIP file contains a folder structure with two (or more) identical folder names. It will then only create the first folder. The other folders with the same names are not created and the files of those folders are saved to some system folder.

    Example folder structure:

    /Folder_A/file1.txt

    /Folder_B/Folder_A/file2.txt

    Folders /Folder_A/ and /Folder_B/ are created and file1.txt is unzipped correctly. 

    Subfolder /Folder_A/ in /Folder_B/ is not created and file2.txt is not showing up in Appian.

    The problem is how the smart service caches already created folders. It only uses the baseName instead of the full path.

    Thanks,

    Christoph 

Comment
  • Hi,

    The UnZip smart service has a problem when the ZIP file contains a folder structure with two (or more) identical folder names. It will then only create the first folder. The other folders with the same names are not created and the files of those folders are saved to some system folder.

    Example folder structure:

    /Folder_A/file1.txt

    /Folder_B/Folder_A/file2.txt

    Folders /Folder_A/ and /Folder_B/ are created and file1.txt is unzipped correctly. 

    Subfolder /Folder_A/ in /Folder_B/ is not created and file2.txt is not showing up in Appian.

    The problem is how the smart service caches already created folders. It only uses the baseName instead of the full path.

    Thanks,

    Christoph 

Children
No Data