Skip to content

Error: unable to locate end-of-central-directory record #25

Description

@brijeshs-atharvasystem

Hi

While extracting the zip file, I am getting the below error in some of the zip files

Archive::Zip::UnzipError (unable to locate end-of-central-directory record)
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:705:in `rescue in find_central_directory'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:678:in `find_central_directory'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:660:in `parse'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:210:in `each'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:576:in `extract'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:100:in `block in extract'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:113:in `open'
/usr/local/bundle/gems/archive-zip-0.12.0/lib/archive/zip.rb:100:in `extract'

If I try to extract the same zip file on the machine, it is extracted properly without any issues.

Note: The error is raised with only a few files. It works fine in other zip files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions