Ftplib File Select
Manual says To download a file, use ftp.retrlines('RETR ' + filename) Here is what i do: ftp.retrbinary('RETR media/backups/andrey.txt', open('file_to_get.txt', 'a+').write) Co
Solution 1:
This might work
filename = 'andrey.txt'
path = "media/backups/"
ftp.cwd(path)
ftp.retrbinary("RETR " + filename ,open(filename, 'a+').write)
Post a Comment for "Ftplib File Select"