From: Fred Drake Date: Fri, 7 Aug 1998 17:30:49 +0000 (+0000) Subject: Added file transfer to example. X-Git-Tag: v1.5.2a1~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=161edc29a624d3d40eeb4706cc8a26ce58921f0e;p=python Added file transfer to example. --- diff --git a/Doc/lib/libftplib.tex b/Doc/lib/libftplib.tex index 00b01a71fc..d2358e8912 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}