IPWorks ZIP 2020 Python Edition

Questions / Feedback?

tar_data Property

(Decompression only) The tar file contents as a byte array.

Syntax

def set_tar_data(value: bytes) -> None: ...

tar_data = property(None, set_tar_data)

Default Value

""

Remarks

Normally you should set archive_file before invoking scan or extract. If you prefer to read the tar file from memory you may set tar_data instead. tar_data should be set to the entire contents of the tar file; this will allow you to read from the archive without writing any temporary files to disk.

If you would like to extract data from the archive without ever writing to disk you should also set WriteToProgressEvent to true, and after invoking scan, you should set the value of file_decompressed_name for each file in the files collection to an empty string. Then, when you invoke extract (or extract_all) the data will be provided in the on_progress event.

This property is write-only. Note that modifying a tar file stored in tar_data is not supported, so append, delete, etc., will throw exceptions.

This property is write-only.

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