Answers for "how to upload and download files from ftp server in python"

3

python ftp upload file

import ftplib
session = ftplib.FTP('server.address.com','USERNAME','PASSWORD')
file = open('kitten.jpg','rb')                  # file to send
session.storbinary('STOR kitten.jpg', file)     # send the file
file.close()                                    # close file and FTP
session.quit()
Posted by: Guest on January-09-2021

Code answers related to "how to upload and download files from ftp server in python"

Python Answers by Framework

Browse Popular Code Answers by Language