Skip to main content

Add Entry to Archive File

Synopsis

This operator adds entries to an archive file object, currently the only available type is a zip file.

Description

The Add Entry to Archive File operator adds entries, i.e. files, to an archive file object created by the Create Archive File operator. By default, the entries are added to the root directory of the archive file, but you can specify a directory name to create a subdirectory inside the archive file. Please have a look at the tutorial process of this operator to better understand its usage.

Input

archive file

This operator can have multiple inputs. When oneinputport is connected, anotherinput准备好接受一个端口可用other input (if any).This input port expects an ExampleSet. It is output of the Retrieve operator in the attached Example Process. Output of other operators can also be used as input. It is essential that meta data should be attached with the data for the input because attributes are specified in their meta data. The Retrieve operator provides meta data along with data.

file input

The Add Entry to Archive File operator can have multiple inputs. When oneinputport is connected, anotherinput准备好接受一个端口可用other input (if any). This input port expects a File Object. File Objects can be created e.g. with the Open File operator.

Output

archive file

The same archive file object that has been connected to the input port is output of this port, with the additional entries added by this operator.

Parameters

Directory

This parameter specifies the directory where the entry will be stored inside the archive file. Specify it in the form 'my/sub/directory', or leave it empty to store the entry in the root folder.

Override compression level

This parameter allows to override the default compression level of the archive file object for the entries created by this operator. The default level is set by the Create Archive File operator that created the archive file object. This is useful, if you are adding pre-compressed files to the archive, such as zip files, jar files etc. These files cannot be further compressed, so you can save some execution time by setting the compression level for new entries of this kind to a low value.

Compression level

The compression level of the newly created entries is specified through this parameter. In general, higher compression levels result also in a higher runtime.