On 10 May 2012, at 17:52, Sean P. DeNigris wrote:
Sven Van Caekenberghe wrote
My question to you is, what are you trying to accomplish ? Check the size first, before doing a download maybe ?
Exactly. I wanted to do it that way so I could output a log message if the file had been modified. In the end, I decided the complexity wasn't worth it in this case and decided to do "client request headers at: 'If-Modified-Since' put: self lastDownloadModified", which works great, but doesn't provide a hook to say "file has changed, downloading..."
OK, that is a good, useful use case. It is doable by handling the non-modified response. #downloadTo: is new, maybe it has to be revised a bit to be more general. Thanks for all the feedback, real usage help a lot to improve Zn (and Pharo). But now I am going to force myself to writing documentation (or Stef will throw me out of the PharoConf). Sven