I am new to python and I am using the FTP module to retrieve files via FTP. This is a sample of my code:
buffer = StringIO.StringIO()
ftp.retrbinary('RETR CAT3.TXT', buffer.write)
ftp.retrbinary('RETR CAT4.TXT', buffer.write)
When I view the buffer the only information I see is the last file info which is CAT4.TXT. Is there a way I can create a list of these files?
Thanks.