Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
Python: Download from FTP server using ftplib 본문
Python: ftplib를 이용해 FTP server에서 다운로드받기
import ftplib path = 'pub/path/' filename = 'sample.txt' ftp = ftplib.FTP("Server IP") ftp.login("UserName", "Password") ftp.cwd(path) ftp.retrbinary("RETR " + filename, open(filename, 'wb').write) ftp.quit()
'랭귀지 > python' 카테고리의 다른 글
Python 파일, 디렉토리 존재 여부 확인 (0) | 2018.08.14 |
---|---|
python 에서 한글폴더 읽기 (0) | 2018.08.13 |
[ftplib] python ftp file upload (0) | 2018.08.10 |
pymssql CRUD 예제 (0) | 2018.08.09 |
이미지 파일 확인하기 (0) | 2018.06.07 |
Comments