Download file from FTP server : FTP : Network PYTHON examples


PYTHON examples » Network » FTP »

 

Download file from FTP server


 

import ftplib
ftp = ftblib.FTP("ftp.yourServer.com")
ftp.login("username""password")
filename = "index.html"
ftp.storlines("STOR " + filename, open(filename))
filename="app.exe"
ftp.storbinary("STOR " + filename, open(filename, "rb")1024)

   
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Network
» FTP