help - ftplib
Tres Seaver
tseaver at palladion.com
Mon May 17 22:20:37 EDT 1999
jam wrote:
>
> On Sat, May 15, 1999 at 01:49:34PM +0000, gony at my-dejanews.com wrote:
> >
> > transfering files????
> >
> > all i can find in the documentation is stuff about binary transfers
> > which doesn't mean a hell of alot to me.
> >
> > I need to be able to use the ftp module to transfer a specifed file from
> > my comp to the server and also retrieve files from the server.
> >
> > any help anyone could give me would be most appreciated
> >
>
> greetings,
>
> the documentation is referring to 'binary file transfers' to differentiate
> them from 'ascii file transfers'.
>
> you can do a 'binary' file transfer of any type of file-- the 'binary' means
> that it saves the file unchanged (without the 8th bit stripped), this means
> you can transfer *anything* (pdf, html, text, windows binaries, linux
> binaries, zip files, tar files, etc etc). have a look at the docs, and try
> it out.. substitute your own URL in the examples, and see if you can make
> it work.
I don't know for sure about "8-bit clean" -- the meaning I usually attach to
"binary" transfers is "don't munge CRLF<->LF": when GETing a text file from a
Unix box to a DOS box, ASCII mode translates LF to CRLF; this transform is
annoying for text (real editors don't need the CR), and catastrophic for
binaries. Do yourself a favor and either configure your FTP client to do binary
transfer by default, or get a better client.
--
=========================================================
Tres Seaver tseaver at palladion.com 713-523-6582
Palladion Software http://www.palladion.com
More information about the Python-list
mailing list