"End-of-central-directory signature not found" when unzipping

11,974

Try below command on terminal.

ditto -x -k source.zip Destination_Dir

ditto will recover most of the contents. Credit goes to http://ask.metafilter.com/157754/Mac-OS-X-Recovering-a-corrupted-zip-file

Share:
11,974
mahesh j
Author by

mahesh j

Updated on July 07, 2022

Comments

  • mahesh j
    mahesh j almost 2 years

    When I unzip the file by double click I get the error

    2:no such file or directory 
    

    After that I open terminal and use the below command but I get the below result:

    unzip /Users/mahesh/Desktop/maheshapp.zip 
    Archive:  /Users/mahesh/Desktop/maheshapp.zip
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of /Users/mahesh/Desktop/maheshapp.zip or
            /Users/mahesh/Desktop/maheshapp.zip.zip, and cannot find /Users/mahesh/Desktop/maheshapp.zip.ZIP
    
  • Pacerier
    Pacerier over 6 years
    What's the difference between ditto and zip?
  • βhargavḯ
    βhargavḯ over 6 years
    @Pacerier ditto: copy directory hierarchies, create and extract archives and zip: package and compress (archive) files