Debug Output from an FTP Transfer : FTP « Network « Python






Debug Output from an FTP Transfer

 

ftp = ftplib.FTP('127.0.0.1', 'book', 'bookpw')
f = open("MyPycFile.pyc", "wb")
ftp.set_pasv(1)
ftp.set_debuglevel(1)
ftp.retrbinary("RETR AutoIndent.pyc", f.write)

   
  








Related examples in the same category

1.An FTP-to-FTP Transfer Program
2.Using an Object Instance as an FTP Callback
3.Download file from FTP server