Is rubyzip directory? broken?

In rubyzip-0.9.1 (an earlier version worked) the ‘directory?’ ( and
‘file?’) method
seem to be wrong. Am I missing a subtlety or is this a known issue?

Thanks
Sam

irb(main):063:0> Zip::ZipInputStream.open(’/tmp/bar.zip’) {|io|
irb(main):064:1* while not (entry = io.get_next_entry).nil?
irb(main):065:2> p entry.name
irb(main):066:2> p entry.directory?
irb(main):067:2> end
irb(main):068:1> }
“bar/”
false
“bar/baz/”
false
“bar/baz/fil2.txt”
false
“bar/fil1.txt”
false

:/tmp$ unzip -l bar.zip
Archive: bar.zip
Length Date Time Name


    0  05-04-07 14:57   bar/
    0  05-04-07 14:58   bar/baz/
    6  05-04-07 14:57   bar/baz/fil2.txt
    6  05-04-07 14:57   bar/fil1.txt

   12                   4 files