Ben Bucksch wrote:
> For 4.x-like roaming, (I think) I need to check, if the local file is 
> newer/older than the file on the server before down/upload.
> 
> I didn't find an API to get the time when the file/resource on the HTTP 
> and FTP server was last modified. I can get to the raw HTTP headers 

I think this is currently the only way possible for HTTP.

> (probably same for FTP), but of course I'd like to avoid parsing them in 

The only way I can think of for ftp is to read the listing of the 
directory, send it through the nsFTPDirListingConv code and grab the 
date of the right file. No headers here ...

> my code. My code is mostly protocol-agnostic right now and I'd like to 
> keep it that way.
> 
> Did I overlook some way to get to that info? If not, would it be 
> reasonable to put that into Necko? Who do you think should the API looks 
> like; most importantly, which interface should contain the method(s)?

I think that would be a completly new interface that can/should be 
implemented for each protocol.

Andreas


Reply via email to