"Lloyd Zusman" <ljz / asfast.com> wrote in message
news:m28z1d4cgj.fsf / asfast.com...

[...code snip]

>    def self.textfile?(item)
>      size = self.size(item)
>      blksize = File.stat(item).blksize
                                            ^^^^^
>      if size < 1 then
>        return false
>      end

[...code snip]

statfile.blksize returns 0 in ruby 1.7.2 (2002-07-02) [i386-mswin32]
So I modified it to

     blksize = File.stat(item).blksize
     blksize = 2048 if (blksize == 0)

Hope I did the right thing ..
Thanks,

-- shanko