SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_find_next Event

This event retrieves the next entry of a custom file listing.

Syntax

class SFTPServerFindNextEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def handle() -> str: ...
  @property
  def operation_status() -> int: ...
  @operation_status.setter
  def operation_status(value) -> None: ...

# In class SFTPServer:
@property
def on_find_next() -> Callable[[SFTPServerFindNextEventParams], None]: ...
@on_find_next.setter
def on_find_next(event_hook: Callable[[SFTPServerFindNextEventParams], None]) -> None: ...

Remarks

This event is fired repeatedly after on_find_first to retrieve the directory contents entry-by-entry. Please see the on_find_first topic for more details about implementing a handler of this event.

Remember to set OperationStatus to ostEOF when there are no more entries left to close the listing operation. If there are more entries to pass, set it to ostOK. Other possible values are given in the table below:

ostOk1
ostNoSuchFile2
ostAccessDenied3
ostWriteProtect4
ostUnsupported5
ostInvalidParameter6
ostEOF7

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