Using version 1.2.0, I am getting strange results when I try to call glob
on a ZipFsDir
object. In a rails console:
> require 'zip/filesystem'
=> true
> file = '/home/me/test.zip'
=> "/home/me/test.zip"
> zf = Zip::File.open file
=> #<Zip::File:0x0000000880e0c8...
> d = zf.dir
=> #<Zip::FileSystem::ZipFsDir:0x0000000880e028
> d.class
=> Zip::FileSystem::ZipFsDir
> d.glob("*.shp")
NoMethodError: undefined method `glob' for #<Zip::FileSystem::ZipFileNameMapper:0x0000000880e078>
Why is it reporting that the method is undefined for Zip::FileSystem::ZipFileNameMapper
? I called it on a ZipFsDir
object. The docs clearly list glob
as a ZipFsDir instance method.