Is it possible to read FTP files without writing them using Python?
Well, you have the answer right in front of you: The FTP.retrbinary method accepts as second parameter a reference to a function that is called whenever file content is retrieved from the FTP connection. Here is a simple example: #!/usr/bin/env python from ftplib import FTP def writeFunc(s): print “Read: ” + s ftp = FTP(‘ftp.kernel.org’) … Read more