Created
May 26, 2015 15:44
-
-
Save scottshuffler/a8ddf7a9884cad64ea79 to your computer and use it in GitHub Desktop.
ftplib example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ftplib import FTP as ftp | |
session = ftp() | |
session.connect(host,port) | |
session.login(username,password) | |
session.cwd(remote_directory) | |
fp = open(path,'rb') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment