SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_command_processed Event

Signals that a command has been processed by the server.

Syntax

class FTPServerCommandProcessedEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def current_directory() -> str: ...
  @property
  def command() -> str: ...
  @property
  def reply_code() -> int: ...

# In class FTPServer:
@property
def on_command_processed() -> Callable[[FTPServerCommandProcessedEventParams], None]: ...
@on_command_processed.setter
def on_command_processed(event_hook: Callable[[FTPServerCommandProcessedEventParams], None]) -> None: ...

Remarks

The class fires this event to signal that a command has been processed by the server, and a reply code has been generated.

You can adjust the reply code and the textual comment associated with it in on_before_send_reply event handler.

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