--- title: "ZipDirectoryPostExecuter" slug: "zip-directory-post-executer" updated: 2026-08-18T13:18:37Z published: 2026-08-18T13:18:37Z canonical: "docs.lobstersoftware.com/zip-directory-post-executer" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # ZipDirectoryPostExecuter | **Class name** | com.ebd.hub.datawizard.postexec.ZipDirectoryPostExecuter | | --- | --- | ## Description ### File or directory This postexecuter can be used to zip files in a directory and return the created archive file to the Response (the response then contains only the zipped files and no data from the Mapping). The ZipDirectoryPostExecuter takes all files from the specified directory or from the directory of a specified file and puts them into a ZIP file. ### Restricting to specific files with file patterns File patterns can also be specified to zip only certain files (note the pipe character). **Examples:** *./tmp/CreateZip/Demo.txt|*.pdf* *./tmp/CreateZip/Demo.txt|*.pdf|*a.csv* *./tmp/CreateZip/Demo.txt|*.pdf|*a.csv|invoice.txt* *./tmp/CreateZip/Demo.txt|invoice.txt* **NOTE:** Note that the behavior of the postexecuter here is different from *./tmp/CreateZip/Demo.txt/invoice.txt. See sections above and below*. ### Ignored files Files ending with **.tmp* or starting with *~* or *.* and files that have the name *Thumbs.db* are ignored. Since output files are always created with the name *~...-tmp* first, these files are also ignored. > [!NOTE] > **NOTE:** > > There is one exception. If checkbox "*Append"* is set in the response, the parameter of the postexecuter defines a folder that contains no files (e.g. *./tmp/CreateZip*) and to path of the file of the Response points to this folder (e.g. *./tmp/CreateZip/Demo.txt*), the postexecuter creates the file *./tmp/CreateZip/Demo.zip*, which contains a file *Demo.txt* with content from the mapping. ### Deleted files If a directory has been specified, the directory with all contained files will be deleted. If a specific file has been specified, the directory remains, but all files (except the one specified in the parameter) are deleted. If file patterns were specified, only the files that were zipped are deleted. If all files of the directory were deleted, then the directory is also deleted. ## Parameters The only parameter (field *Config file)* to be specified is the path of the folder in which the files to be zipped are or the path of a specific file in the folder to be zipped (see example below). Variables can be used here as usual (with *@VARNAME@*). **Examples:** - If the path *./temp/myContainer* is specified in field *Config* *file*, all files in this directory are zipped and returned to the response. The *myContainer* directory and all included files are deleted. The name of the generated zip file is the name specified as the file name in the response. - If the path *./temp/myContainer/myfile.txt* is specified in field *Config* *file*, all files in this directory are zipped and returned to the response. The *myContainer* directory is retained and all contained files (except *myfile.txt*) are deleted. The name of the generated zip file is the name specified as the file name in the response. The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel. The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated.