newbie question - python blocking on int()?

Michael Davis michael at
Mon Jun 10 23:19:10 EDT 2002

Wladimir wrote:

> On Tue, 11 Jun 2002 01:59:33 +0200, Chris Liechti wrote:
>> also note that split() might not be safe for every case. e.g when the
>> user name contains a space (if possible) and surely when the filename
>> has a space in it.
> 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)

I know! I just want to make it work with two servers I use. I want to be 
able to detect when a file has changed, by a combination of modification 
time and file size. Unfortunately the ftp size() function is buggy, it 
always adds 1 whenever there is a \n in the file, (assumes, I guess, that 
you want the file size as though it were a unix text file that was going to 
be converted to dos)...

Thanks for replying!

Michael Davis
Custom Programming - Web Development - Database Design

More information about the Python-list mailing list