on_find_close Event
This event signifies the completion of a custom file listing operation.
Syntax
class SFTPServerFindCloseEventParams(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_close() -> Callable[[SFTPServerFindCloseEventParams], None]: ... @on_find_close.setter def on_find_close(event_hook: Callable[[SFTPServerFindCloseEventParams], None]) -> None: ...
Remarks
on_find_close notifies your code about the completion of a custom file listing request. Use it in conjunction with on_find_first and on_find_next to handle file listing requests manually.
See on_find_first topic for the details on implementing customized file listing request processing.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |