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
- 유니티
- 함수
- ubuntu
- flutter
- tensorflow
- 다이어트
- PER
- sqlite
- GIT
- port
- Linux
- python
- node.js
- javascript
- pandas
- 리눅스
- 맛집
- Excel
- mssql
- MySQL
- ASP
- PyQt
- MS-SQL
- 날짜
- PyQt5
- IOS
- urllib
- 라즈베리파이
- Unity
- swift
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