newbie question - python blocking on int()?
Fredrik Lundh
fredrik at pythonware.com
Thu Jun 13 06:37:57 EDT 2002
"Wladimir" wrote:
> Parsing the output of ftp.dir in any way is never comphrehensively safe
> because it it platform dependent according to the FTP RFC. Spaces in
> usernames are not possible though AFAIK, and most servers use a unix ls
> like semantic for dirs so it's *pretty safe*. (although I've seen ugly DOS
> like listings as well)
Dan Bernstein's ftpparse library can parse the output from
most FTP servers. you can find a wrapper here:
http://effbot.org/downloads/
(look for ftpparse)
</F>
More information about the Python-list
mailing list