Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unzip succeed, but some files was lost #679

Open
evanycyc opened this issue May 18, 2023 · 5 comments
Open

unzip succeed, but some files was lost #679

evanycyc opened this issue May 18, 2023 · 5 comments

Comments

@evanycyc
Copy link

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

@arinjay
Copy link

arinjay commented Sep 1, 2023

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

@Coeur
Copy link
Member

Coeur commented Sep 2, 2023

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)

@arinjay
Copy link

arinjay commented Sep 4, 2023

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

@Coeur
Copy link
Member

Coeur commented Sep 4, 2023

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.

@stephent
Copy link

stephent commented Oct 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants