IPWorks ZIP 2020 Python Edition

Questions / Feedback?

file_compression_method Property

This property specifies the compression method used for the individual file.

Syntax

def get_file_compression_method(file_index: int) -> int: ...
def set_file_compression_method(file_index: int, value: int) -> None: ...

Default Value

0

Remarks

This property specifies the compression method used for the individual file. The compression method set here is applicable to this file only. Possible values are:

ValueMethod
cmszLzma (0 - default) LZMA
cmszBzip2 (1) BZip2
cmszDelta (2) Delta
cmszCopy (3) Copy (no compression)
cmszDefalte (4) Deflate
cmszDefalte (5) LZMA2

If this property is not set, the method specified by the compression_method property will be used. Note that different files in the archive may use different compression methods.

The file_index parameter specifies the index of the item in the array. The size of the array is controlled by the file_count property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 Python Edition - Version 20.0 [Build 8300]