on_after_compress_file Event
Marks the completion of compression of a file.
Syntax
class ArchiveWriterAfterCompressFileEventParams(object): @property def path() -> str: ... @property def file_size() -> int: ... @property def data_source() -> int: ... # In class ArchiveWriter: @property def on_after_compress_file() -> Callable[[ArchiveWriterAfterCompressFileEventParams], None]: ... @on_after_compress_file.setter def on_after_compress_file(event_hook: Callable[[ArchiveWriterAfterCompressFileEventParams], None]) -> None: ...
Remarks
Subscribe to this event to get notified about the completion of compression of a file.
The Path parameter specifies the internal path to the entry inside the archive. The FileSize indicates the size of the file before compression, and the DataSource specifies the type of the source media.
fdsFile (0) | The data was taken from a file. |
fdsStream (1) | The data was taken from a stream assigned to file_stream property. |
fdsBuffer (2) | The file data taken from the file_data buffer. |