mini_buildd.ftpd module¶
- class mini_buildd.ftpd.FtpDHandlerMixin(*args, **kwargs)¶
Bases:
object
- on_file_received(file)¶
Make any incoming file read-only as soon as it arrives; avoids overriding uploads of the same file.
- on_incomplete_file_received(file)¶
- on_disconnect()¶
- class mini_buildd.ftpd.FtpDHandler(*args, **kwargs)¶
Bases:
FtpDHandlerMixin
,FTPHandler
- class mini_buildd.ftpd.FtpsDHandler(*args, **kwargs)¶
Bases:
FtpDHandlerMixin
,TLS_FTPHandler
- class mini_buildd.ftpd.FtpD(endpoint, handler_options)¶
Bases:
Thread
- HANDLER_OPTIONS_NAMES = ['passive_ports']¶
- HANDLER_OPTIONS_USAGE = 'ftpd handler options (see ``https://pyftpdlib.readthedocs.io/en/latest/api.html#control-connection``).\n\nFormat is ``name0=value0;name1=value1...``.\n\nSupported options: ``passive_ports``\n\nDivergent string values:\n\n``passive_ports=<min_port>-<max_port>``\n'¶
- classmethod parse_handler_options(str_options)¶
- shutdown()¶
- run()¶
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.