on_after_create_directory Event
Signals the completion of a directory creation operation.
Syntax
class FTPServerAfterCreateDirectoryEventParams(object): @property def connection_id() -> int: ... @property def directory() -> str: ... @property def operation_status() -> int: ... @operation_status.setter def operation_status(value) -> None: ... # In class FTPServer: @property def on_after_create_directory() -> Callable[[FTPServerAfterCreateDirectoryEventParams], None]: ... @on_after_create_directory.setter def on_after_create_directory(event_hook: Callable[[FTPServerAfterCreateDirectoryEventParams], None]) -> None: ...
Remarks
The class fires this event upon completion of a directory creation operation. Check the operation status, and alter it, if needed, through the OperationStatus parameter:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |