-
-
Save kimyongyeon/44ec5374ecd5d9bca2189fc4fb284bc3 to your computer and use it in GitHub Desktop.
python-ftp파일업로드
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
#!/usr/bin/env python | |
import ftplib | |
ftp = ftplib.FTP('host','user','password') | |
fname = "업로드할 파일명(path포함가능" | |
full_fname = "로컬파일명(path포함가능)" | |
ftp.storlines('STOR '+ fname, open(full_fname, 'rb')) | |
ftp.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment