How do I append to a file using ftplib?

Peter Hansen peter at engcorp.com
Mon Mar 31 19:47:31 CEST 2003


JD wrote:
> 
> How do I append to a file using ftplib? Can't figure this out, am I missing
> something?

Are you trying to append to a file you are retrieving, or to one you 
are storing to the server?

What have you tried so far?  If you're using retrbinary(), for example, it
would seem pretty obvious what to do (pass it callback that works on a file
opened in append mode) but maybe you've been stumped by something that isn't
part of the core problem.... help us out with some background here.

-Peter




More information about the Python-list mailing list