ZipFileWriter.Based on file name

Syntax:

New ZipFileWriter(<FileName>, <Password>, <Commentaries>, <CompressionMethod>, <CompressionRatio>, <EncryptionMethod>)

Parameters:

<FileName> (required)

Type: String.
Name of the file to which the archive will be written.

<Password> (optional)

Type: String.
The password that will be assigned to the archive.
If no password is assigned or it consists of an empty string, no encryption will be performed.

<Commentaries> (optional)

Type: String.
A comment describing the ZIP file.

<CompressionMethod> (optional)

Type: ZIPCompressionMethod.
The compression method that will be used to compress the archive.
Default value: Deflate.

<CompressionRatio> (optional)

Type: ZIPCompressionLevel.
Data compression ratio.
Default value: Optimal.

<EncryptionMethod> (optional)

Type: ZIPEncryptionMethod.
The encryption method that will be used to encrypt the archive.
Default value: Zip20.

Description:

Creates a ZIP file for writing. It is similar to the method Open.

    

1C:Enterprise Developer's Community