ftplib LIST question

Gerhard Häring gerhard.haering at gmx.de
Tue Aug 6 05:54:09 CEST 2002


* Al <spohn at nospam.mayo.edu> [2002-08-05 22:23 -0500]:
> I'm interested in parsing the output of retrlines('LIST') via a callback 
> routine, e.g., retrlines('LIST',mycallbackroutine()).

Do you want to learn or have results? :) Not having it used myself, but
this module could come in useful if you want results:

http://c0re.jp/c0de/ftpparsemodule/

| FTP-Servers provide a wide range of responses to the LIST command.
| ftpparsemodule allows you to parse most ftp-servers LIST responses
| found in the wild. It does so by using Dan Bernsteins ftpparse package
| and making it accessible to Python.

I haven't checked the redistribution rules for djb's ftpparse package.
You might want to check them first, as some of his software has, ummm,
strange policies for redistribution :->

You could still steal^get inspirement from his algorithms ;-)

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list