Need to process files from an FTP connection without downloading all of the files. What is the equivalent 'open' method for FTP so I can open the contents of the file, read the file into a large repository file, and discard of the file and it's contents?
import ftplib
repofile = open('repofile.txt', 'w')
ftp = ftplib.FTP('severaddress', 'username', 'password')
ftp.cwd('directory/I/want')
filelist = ftp.nlst()
''' above line creates a list of the files to loop through'''
for file in filelist:
# open file, but don't download it
# write contents to repofile