mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +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()
|
>>> ftp.quit()
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue