How exactly would you create a list of the entries in an FTP directory?
This is my code so far:
import ftplib files = [] my_ftp = ftplib.FTP(HOST)
A little change to the callback argument and the following should work
line = my_ftp.retrlines("NLST",files.append)