ftp mget

Eddie Corns eddie at holyrood.ed.ac.uk
Fri Mar 26 06:42:39 EST 2004


allanc <allan_NOSPAMcuenca at nospamyahoo.com> writes:

>Anybody know if there's an ftp client in python that can do an mget?

>My current implementation of an mget uses ftpconnection.nlst() to retrieve 
>the list of filenames. Then iterates through this list with
>retrlines('RETR ' + fname,callback).

>I'd like to eliminate a LIST command on the ftp server altogether.

A quick scan of the FTP RFC at:

  http://www.w3.org/Protocols/rfc959/Overview.html

(specifically "file transfer functions") suggests that there is no command to
get multiple files by globbing and that you have to do it this way.

Eddie



More information about the Python-list mailing list