[Zope] File truncation after FTP
John Poltorak
jp at warpix.org
Wed Mar 3 05:35:29 EST 2004
On Tue, Mar 02, 2004 at 07:38:01PM -0500, Ed Leafe wrote:
> On Mar 2, 2004, at 5:42 PM, John Poltorak wrote:
>
> > When I upload a file via FTP it gets shortened. Can anyone suggest why?
> >
> > The correct number of bytes is sent as far as FTP is concerned, but
> > when I
> > run 'ls' after the transfer the filesize is reduced.
> >
> > Is this to be expected or have I messed something up?
>
> Sounds like you are sending a binary file in ASCII mode. That will
> truncate it at the first EOF character it comes across.
No, it's a binary mode transfer of a text file and everything after the
first blank line gets stripped off.
> ___/
> /
> __/
> /
> ____/
> Ed Leafe
>
> Linux Love:
> unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
--
John
More information about the Zope
mailing list