Bug? Zip / AsyncUnzip not working - iArchive v1.01

MikeH

Well-Known Member
Licensed User
Longtime User
I`m having difficulty getting a file to unzip. I can see the zip file in the folder using Log(File.ListFiles(File.DirTemp)) but my results are:

B4X:
Zip.Unzip(File.DirTemp, "POI.zip", File.DirTemp, "")

Error unzipping file: Error Domain=SSZipArchiveErrorDomain Code=-1 "failed to open zip file" UserInfo=0x19e8e600 {NSLocalizedDescription=failed to open zip file}

B4X:
Zip.AsyncUnzip(File.DirTemp, "POI.zip", File.DirTemp, "", "UnZip")

Unzip_unzipdone is triggered but success is always false.


I`ve also tried using DirDocuments but I get the same results.

Hope you can help.

Thank you,
Mike.
 

MikeH

Well-Known Member
Licensed User
Longtime User
It appears that my zip file was broken. Hence "failed to open zip file".

I`ll know for sure soon and will confirm.

Thanks again.
 

chjk

Member
Licensed User
Longtime User
I also encountered the same problem, how do you solve it ? Thanks
 

moore_it

Well-Known Member
Licensed User
Longtime User
The zip work only with folders, you need to copy a file/files in a folder and zip it.
For me work fine.
 
Top