giampaolo / pyftpdlib

Extremely fast and scalable Python FTP server library
MIT License
1.65k stars 265 forks source link

how to detect file up load is not completed #624

Closed eragondr closed 1 week ago

eragondr commented 1 month ago

Hi. I need to check that the file user upload to the server is completed or not. if not it will be removed. As I check in the code it said if the file is receive it always return transfer_finished = True. What logic I can implements to solve the problem . image

Thank you for your works

giampaolo commented 1 week ago

You should use: https://pyftpdlib.readthedocs.io/en/latest/tutorial.html#event-callbacks

eragondr commented 1 week ago

hi the problem is it never going to on_incomplete_file_received