ZipSubDirs

Configuration

None.

Class name

com.ebd.hub.datawizard.app.asm.api.ZipSubDirs


The API class ZipSubDirs can be used within the add-on module "ASM".

The class creates zip archives per subdirectory of the ASM base directory. The zip file is always named after subfolder (<subfolder>.zip). So, for example, if the base directory is ./asm/zip, only folders found in ./asm/zip are zipped.


Example


Assume the ASM root directory ./asm/zip and files in subfolders ./asm/zip/CustomerA and ./asm/zip/CustomerB. After the run of the ASM job, there will be two files in the root directory ./asm/zip: CustomerA.zip and CustomerB.zip (and the empty subfolder CustomerA and CustomerB). File names beginning with a dot (.) and additional subfolder in subfolders CustomerA and CustomerB are ignored. A folder CustomerA will be ignored if there already exists a file CustomerA.zip (there will be entries in the ASM log in that case).

Note: The settings for the backup handling will not be used. The ASM module will only delete the original files if the ZIP archives were successfully created.