0
Fixed

zip archivator is not working correctly with big projects. it is losing the files.

keeka 13 years ago updated by Alexander Blach (Developer) 12 years ago 7
Version 4.3

Answer

Answer
Fixed

The problem will be fixed in the next update.


Here is some background information: I am using a zip library which is using the "fopen" function to open files and "fread" to read their contents when creating the zip file. Unfortunately, the code never called "fclose". So while creating the zip file, the app would run out of file handles and silently fail to add all files to the zip file. I added a call to "fclose" after each file was written to the zip file and now it works correctly.

Can you please give me some more details so I can try to reproduce it?
I`m trying to modify big project (about 260 files in 66 folders in C-language), archive it and upload to dropbox. But when i archive files, some of those are missed in zip-file (entire folders can be missed).

And another thing. When I archive files a several times in a row, the result archive is empty.

archive files -> send to dropbox;

receive and modify files;

archive files -> there are i get empty archive.

I didn't have any of these problems in my test, but I'm going to try to reproduce it.
hm its very strange, cuz i have these problems systematically
on ipad try to zip the folder with many folders and files to get 2-3 Mb zip-file. and then unzip it.
when i do this i don't receive 2-3 mb zip-file. only 1-1.6. mb zip-file with many files missed.

I seem to have a similar problem. Using Textastic on an iPad 2, I try to zip two small files and a folder which itself contains a couple hundred small files. When i transfer the results to my Mac and unzip, sometimes only the folder reappears not the other two files. 

Answer
Fixed

The problem will be fixed in the next update.


Here is some background information: I am using a zip library which is using the "fopen" function to open files and "fread" to read their contents when creating the zip file. Unfortunately, the code never called "fclose". So while creating the zip file, the app would run out of file handles and silently fail to add all files to the zip file. I added a call to "fclose" after each file was written to the zip file and now it works correctly.

Perfect, thank you.