How can I handle disconnects in ftplib?
I wrote a Python scrip that I will use in order to upload very big files to an FTP server using ftplib.
My question is: Seeing as upload will probably take a lot of time due to the file's size, what if the internet disconnects in the middle and then reconnects say after 1 minute? How can I handle such issue in the script? Any ideas?
What I thought about is a try except block that keeps checking if internet connection is available. Any ideas?
Thank you