Published in: Python
# Import FTP library: import ftplib # Connect to the server: s = ftplib.FTP('server','user','password') # Open file to send: f = open('/folder/folder/local_filename','rb') # Store file on server: s.storbinary('STOR server_filename', f) # Close sent file: f.close() # Close server connection: s.quit()
You need to login to post a comment.
