Bug in the PureZIP lib for PB4?
Posted: Fri Jul 07, 2006 11:21 pm
I think I've found a bug in PureZIP for PB4.
When I run this code
All files in the Picasa folder is compressed along with the subfolders and files. One thing I notices is that in every folder below the root of the archive there is an empty file, with no name. I can't open the file in the archive, but it says it is 0 bytes uncompressed when I open it in WinRAR, compressed the file is 2 bytes.
When I compress a folder containing 34 files and 5 folders, PureZIP_GetFileCount reports it compressed 40 files. Is that the extra empty file it's counting?
Any feedback on this?
When I run this code
Code: Select all
OpenConsole()
MyZIP.s = "C:\TestFile.zip"
Path.s = "C:\Picasa2\*.*"
If PureZIP_Archive_Create(MyZIP.s, #APPEND_STATUS_CREATE)
PrintN("Compressing files, please wait...")
PrintN("")
PureZIP_AddFiles(MyZIP.s, Path.s, #PureZIP_StorePathRelative, #PureZIP_Recursive)
PureZIP_Archive_Close()
PrintN("")
PrintN("Compression completed!")
EndIf
PrintN("Archive contains "+Str(PureZIP_GetFileCount(MyZIP.s))+" files.")
PrintN("")
PrintN("Press any key to exit!")
Input()
CloseConsole()
When I compress a folder containing 34 files and 5 folders, PureZIP_GetFileCount reports it compressed 40 files. Is that the extra empty file it's counting?
Any feedback on this?