Previous Next
Opalis Integration Server > Foundation Objects > File Management > Compress File

Compress File
The Compress File object compresses files into zip archives.
How it is used
Use the Compress File object to archive log files before storage or before sending them to another location using FTP or email.
To configure the Compress File object you need to know which files you will compress.
Details Tab
Type the path to the file, or to the folder that contains the files, that you want to compress, or click the ellipsis (...) button and browse for the files. You may use wildcards in filenames.
Include sub-folders
Select this option to include any files that are found within sub-folders of the folder that you specified.
Type the path and filename of the archive that you are creating.
Store relative path in archive
Select this option to store the files within the same sub-folders that they were found in. When this option is unselected, the files will be added to the archive with the full path. For example:
Selected – ..\subfolder1\file.txt, and ..\subfolder1\subfolder2\file.txt
Unselected – C:\files\subfolder1\file.txt, and C:\files\subfolder1\subfolder2\file.txt
If the destination archive already exists
Select the action that you want to take if a file with the same name as the archive being created already exists in the destination folder:
Add files to the existing archive - Select this option to add the files that you specified to the existing archive.
Create a unique named archive - Select this option to append a value to the filename to create a unique filename that does not conflict with the existing filename.
Overwrite the existing archive - Select this option to overwrite the existing file with the archive that you are creating.
Fail if the archive exists - Select this option to cause the Compress File object to fail if the filename already exists.
Compression level
Select the level of compression that you want to use to compress the files into the archive. Higher compression levels take more time to complete but usually result in smaller files. Lower compression levels create larger archives, but take less time to complete.
Available Published Data
Archive name and path
The name and path of the archive file that was created.
Number of files within archive
The number of files inside the archive file.
Size of archive
The size of the archive file.
Common Published Data

Previous Next