ftplib python: NOOP command works in ASCII not Binary
I have a threaded FTP script. While the data socket is receiving the data, a threaded loop sends NOOP commands to the control socket to keep control connection alive during large transfers.
I am prevented from using the
If I DONT call
etc. But the file is in ASCII and therefor corrupted. If I DO call
Very strange, but I am sure its simple. It seems as though the
Thanks in advance for any advice you can offer.
I suspect that’s part of FTP specification.
In fact, look at
The last line expects to get tranfer result (as known to server) only after tranfer is complete.
In fact it seems your code is missing
I am not very familiar with ftp, from what I’ve seen background downloaders like
You have a valid concern if your file is really large.
There are many extensions to FTP, there may be something that does what you want.
Alternatively you can make a loop likes this: