8000 Undefined method 'path' · Issue #119 · rubyzip/rubyzip · GitHub
[go: up one dir, main page]

Skip to content
Undefined method 'path' #119
Closed
Closed
@mperham

Description

@mperham

I'm just doing this where det.content is a String of binary data.

Zip::File.open_buffer(det.content) do |zipfile|
end
     NoMethodError:
       undefined method `path' for #<StringIO:0x007fe9036804e0>
     # ./.bundle/ruby/2.0.0/gems/rubyzip-1.1.0/lib/zip/entry.rb:180:in `read_c_dir_entry'
     # ./.bundle/ruby/2.0.0/gems/rubyzip-1.1.0/lib/zip/central_directory.rb:124:in `block in read_central_directory_entries'
     # ./.bundle/ruby/2.0.0/gems/rubyzip-1.1.0/lib/zip/central_directory.rb:123:in `times'
     # ./.bundle/ruby/2.0.0/gems/rubyzip-1.1.0/lib/zip/central_directory.rb:123:in `read_central_directory_entries'
     # ./.bundle/ruby/2.0.0/gems/rubyzip-1.1.0/lib/zip/central_directory.rb:135:in `read_from_stream'
     # ./.bundle/ruby/2.0.0/gems/rubyzip-1.1.0/lib/zip/file.rb:128:in `open_buffer'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0