Python downloads files from FTP server

From , 5 Years ago, written in Python, viewed 220 times.
URL https://pastebin.vip/view/8965f766
  1. import ftplib
  2. ftp = ftblib.FTP("ftp.yourServer.com")
  3. ftp.login("username", "password")
  4. filename = "index.html"
  5. ftp.storlines("STOR " + filename, open(filename))
  6. filename="app.exe"
  7. ftp.storbinary("STOR " + filename, open(filename, "rb"), 1024)
  8.  
  9. #//python/8053

Reply to "Python downloads files from FTP server"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website