From: Robert Klemme Date: 2010-08-18T06:30:14+09:00 Subject: Re: Making File.open work on gzipped files On 17.08.2010 20:56, Martin Hansen wrote: > Thanks Brian, > > I did look at ruby's zlib and wondered why there is no method to check > if a file is zipped or not - one could perhaps could fix something by > rescuing the Zlib exception? Exactly, just try to open with GzipReader and if that throws just work with the regular file which you have opened already. > Looking at the docs there is a couple of TODOs. Perhaps this is another > one. What todo do you mean? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/