on_start_transfer Event
Fired when a file starts downloading/uploading.
Syntax
class FTPStartTransferEventParams(object): @property def direction() -> int: ... # In class FTP: @property def on_start_transfer() -> Callable[[FTPStartTransferEventParams], None]: ... @on_start_transfer.setter def on_start_transfer(event_hook: Callable[[FTPStartTransferEventParams], None]) -> None: ...
Remarks
The on_start_transfer event fires when a Data Interface connection is created. This is when the file starts transferring and/or a directory listing is started.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.