ftplib only posting 52 bytes?

Brent Stroh bmstroh at cavtel.net
Thu Jun 14 06:40:06 EDT 2001


David Bolen <db3l at fitlinxx.com> wrote:

>One thought is that you're not opening the file in binary for the
>transfer.  Although you're using a binary store store operation at the
>FTP level, that only notifies the server to process the incoming
>stream without conversion.  The FTP module is still reading the file
>through your text mode file object, and probably stopping at what it
>thinks is an EOF when it sees the first ^Z (ASCII 26) in the file.

That was it - can't believe I didn't think of that.  :) 

Thanks!





More information about the Python-list mailing list