IPWorks ZIP 2020 Python Edition

Questions / Feedback?

file_compressed_name Property

The file name of the current file, as stored inside of the archive.

Syntax

def get_file_compressed_name(file_index: int) -> str: ...
def set_file_compressed_name(file_index: int, value: str) -> None: ...

Default Value

""

Remarks

The file name of the current file, as stored inside of the archive. This may be the same as in file_decompressed_name, but is not required to be.

All paths are stored in the archive in standard (UNIX) format. Pathnames specified in the host operating system's format will be immediately converted.

This field should generally be set with a relative path or with no path at all. The exact interpretation of the path is left to the decompression software; generally, pathnames will be interpreted as relative to a base directory, and these subdirectories will be created as needed. Absolute pathnames will not be interpreted correctly by the class, and may or may not be interpreted correctly by other decompression software.

Paths should be specified in standard (UNIX) format. They may also be specified in the format native to the host operating system, in which case they will be immediately converted.

Example


ZipControl.ArchiveFile = "c:\test.zip"
ZipControl.Files.Add(new ZIPFile())
ZipControl.Files[0].DecompressedName = "c:\test\ipworkszip\temp\test.txt"
ZipControl.Files[0].CompressedName = "readme.txt"
ZipControl.Compress()

The size of the array is controlled by the file_count property.

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