ZipArchive icon indicating copy to clipboard operation
ZipArchive copied to clipboard

unzip succeed, but some files was lost

Open evanycyc opened this issue 1 year ago • 5 comments

BOOL result = [SSZipArchive unzipFileAtPath:decPath toDestination:filePath]; result is YES, but some files don't exist in folder occasionally.

evanycyc avatar May 18 '23 03:05 evanycyc

getting same issue ,
unzip success, but error in getting the contents

arinjay avatar Sep 01 '23 14:09 arinjay

Which version of ZipArchive? Any particularities related to those failures?

  • special permissions on a file or folder?
  • special characters in the name?
  • filetype or filesize?

(without steps to reproduce the problem, we should normally close this issue)

Coeur avatar Sep 02 '23 11:09 Coeur

version used: 2.4.3

  • No special permission is required to unzip that file
  • no unique character in the same
  • Unzip file size ~ 4 MB

arinjay avatar Sep 04 '23 05:09 arinjay

Then I'm afraid, but that's not enough out-of-the-ordinary to give any clue as to what happened. If the issue is reproducible consistently:

  • try with a newer version of ZipArchive to see if that resolves the issue
  • try to share the archive here for analysis

We can't do more.

Coeur avatar Sep 04 '23 09:09 Coeur

I'm seeing the same with this file (remove .txt for original KMZ file):

waterfall creek cutoff.kmz.txt

File size: 4270 bytes Unzipped: 96 bytes

BOOL result = [SSZipArchive unzipFileAtPath:kmzURL.path toDestination:unzipURL.path overwrite:YES password:nil error:&error];

Using v2.5.4 in Xcode 15 while debugging, result is YES and error is nil.

stephent avatar Oct 03 '23 00:10 stephent