Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 함수
- PER
- Excel
- GIT
- 다이어트
- port
- python
- sqlite
- MySQL
- ubuntu
- 맛집
- urllib
- PyQt5
- javascript
- pandas
- 라즈베리파이
- PyQt
- node.js
- swift
- 리눅스
- Unity
- 날짜
- IOS
- ASP
- MS-SQL
- Linux
- tensorflow
- 유니티
- flutter
- mssql
Archives
목록ftplib (2)
아미(아름다운미소)
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
2018. 8. 11. 08:25
[ftplib] python ftp file upload
[ftplib] python ftp file upload import ftplib filename = "sample.png" ftp = ftplib.FTP() ftp.connect("111.111.111.111","21") #Ftp 주소 Connect(주소 , 포트) ftp.login("id", "password") #login (ID, Password) ftp.cwd("/forder/Test") #파일 전송할 Ftp 주소 (받을 주소) os.chdir(r"D:\\FTP_TEST\\img") #파일 전송 대상의 주소(보내는 주소) my_file = open(filename, 'rb') #Open( ~ ,'r')
랭귀지/python
2018. 8. 10. 09:30