I'm stuck piping ftplib.FTP.retrlines to csv.reader...
FTP.retrlines repeatedly calls a callback with a line in it, while csv.reader expects an iterator which returns a string each time its __next__() method is called.
How do I combine the two things together so that I can read and process the file without reading the whole file in advance and e.g storing it in a e.g. io.TextIOWrapper?
My problem is FTP.retrlines won't return until it consumed the whole file...