ZipArchive
ZipArchive copied to clipboard
unzip succeed, but some files was lost
BOOL result = [SSZipArchive unzipFileAtPath:decPath toDestination:filePath]; result is YES, but some files don't exist in folder occasionally.
getting same issue ,
unzip success, but error in getting the contents
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)
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
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.
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
.