ftplib and FTP Objects...
Andy Gimblett
gimbo at ftech.net
Fri Apr 12 09:16:33 EDT 2002
On Fri, Apr 12, 2002 at 11:16:11AM +0100, Andy Gimblett wrote:
> ftp.storbinary('STOR ' + fname, f.read())
Sorry, I just realised that should be:
ftp.storbinary('STOR ' + fname, f)
(ie ftplib takes care of the read() for you).
Cheers,
Andy
--
Andy Gimblett - Programmer - Frontier Internet Services Limited
Tel: 029 20 820 044 Fax: 029 20 820 035 http://www.frontier.net.uk/
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.
More information about the Python-list
mailing list