I'm currently developing an ftp server using pyftpdlib by giampaolo. I've been struggling since I need to process stuff when the server receive the RETR commnand before sending a given file.
My question is, is there any form of implementing a callback or tweaking the source so I can do such validation over a file before it is sent, and if so how would I implement it?