tokibito/django-ftpserver — pull request #3 by yildizib (2014-10-23 20:53:33+00:00)
Title: custom ftphandler set in settings file

For custom purpose custom ftphandler setting in django settings file

# Django FTPSERVER settings
FTPSERVER_HOST = '127.0.0.1'
#FTPSERVER_HOST = '0.0.0.0'
FTPSERVER_PORT = '10021'
FTPSERVER_PASSIVE_PORTS = '10025'
# FTP handler settings
FTPSERVER_CUSTOM_HANDLER = 'ftp_utils.handlers.QloudEncodeFtpEventHandler'
# ftp deamonize settings
FTPSERVER_DAEMONIZE = False

ftp_utils.handlers.QloudEncodeFtpEventHandler ftphandler extends FTPHandler. Some ftp event tapping in this custom handler. for example file_complete_recieved function triggered file successfully transferred. Your handler is trap this event for do anything.