summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-08-07 17:30:49 (GMT)
committerFred Drake <fdrake@acm.org>1998-08-07 17:30:49 (GMT)
commit161edc29a624d3d40eeb4706cc8a26ce58921f0e (patch)
tree5183551076bef75db1d31774e06b99eaa17a5d04 /Doc
parent0cb76200efd9aedc317b78836252e88b3cb7f4bb (diff)
downloadcpython-161edc29a624d3d40eeb4706cc8a26ce58921f0e.zip
cpython-161edc29a624d3d40eeb4706cc8a26ce58921f0e.tar.gz
cpython-161edc29a624d3d40eeb4706cc8a26ce58921f0e.tar.bz2
Added file transfer to example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libftplib.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/lib/libftplib.tex b/Doc/lib/libftplib.tex
index 00b01a7..d2358e8 100644
--- a/Doc/lib/libftplib.tex
+++ b/Doc/lib/libftplib.tex
@@ -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}