IPWorks ZIP 2020 Python Edition

Questions / Feedback?

on_begin_file Event

Fired before a file is processed.

Syntax

class GzipBeginFileEventParams(object):
  @property
  def index() -> int: ...
  @property
  def skip() -> bool: ...
  @skip.setter
  def skip(value) -> None: ...

# In class Gzip:
@property
def on_begin_file() -> Callable[[GzipBeginFileEventParams], None]: ...
@on_begin_file.setter
def on_begin_file(event_hook: Callable[[GzipBeginFileEventParams], None]) -> None: ...

Remarks

on_begin_file is fired before compression or decompression begins. Index will contain 0.

You may use the Skip parameter to tell the class to skip the file when appending or decompressing.

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