I am downloading image files which are in the zip format to a folder in my app files folder.
When the folder is opened the file is shown as .zip and when selected it unzips and creates a new file. In my case it creates a jpg. leaving the zip file also.
My question is, how do I unzip the file with swift since iOS appears to have the capability?
The files I am downloading are single file
.zip
.
A single file zip archive still includes a zip structure. The Compression framework knows nothing about this zip structure. It can work with the compressed byte streams in this structure, but you’d have to parse them out the structure first. Hence my suggestion that you need to either write or acquire a library that understands the zip structure.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"