mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added file transfer to example.
This commit is contained in:
parent
0cb76200ef
commit
161edc29a6
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ dr-xr-srwt 105 ftp-usr pdmaint 1536 Mar 21 14:32 ..
|
|||
.
|
||||
.
|
||||
.
|
||||
>>> ftp.retrbinary('RETR README', open('README', 'wb').write)
|
||||
'226 Transfer complete.'
|
||||
>>> ftp.quit()
|
||||
\end{verbatim}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue