
I not really understand why, but your right.
Now it works perfect.
Moderator: gnozal
I am afraid you have to code your own recursive routine.Max wrote:to gnozal
How to code when I need to compress a recursive folder (with PureZIP_AddFiles) which contains some files with accented characters?
PureZIP_AsciiDosLatinUS_To_AsciiWinLatin1 only transforms one string every time.
Not so heavy.Max wrote:Yes, I can make ExamineDirectory (recursive) and transform one by one...but it's very heavy.. if we've some other option....
Do you use PureZIP_AddFiles() ? With this command I get also somePhilippe-felixer76 wrote:POLINK: error: Symbol '_inflate_copyright'is myltiply defined......
Note :Philippe-felixer76 wrote:I might be wrong, but is it possible when using
this great zip library with the pngimage decoder,
you get the message:
POLINK: error: Symbol '_inflate_copyright'is myltiply defined......
Well, I'm also using TC (beta 3 at moment), and I've not any problem with PureZip, even deleting files from TC.AL90 wrote: Do you use PureZIP_AddFiles() ? With this command I get also some
problems in real TotalCommander. TC will give an error like Unknown Format if I want Delete a File in Archive.
But the Archive is not corrupt. All Files can be normal Extracting.
Code: Select all
Procedure Zipear(zipf.s, param.s, recur.l)
DeleteFile(zipf)
nFi = PureZIP_AddFiles(zipf, param, #PureZIP_StorePathRelative, recur)
WriteStringn(nFilog,"Comprimidos "+rset(str(nFi),6)+ " : "+GetFilePart(zipf))
EndProcedure
Probably because you are using #PureZIP_RecursiveZeroDirs (help file : 'recursive file search and add empty directories (use only if necessary)').AL90 wrote:I use wildcards like this:
PureZIP_AddFiles(ZipFile$,fm_tmp$+"*.*",2,2)
and archive contains which is created so will TC not delete.
This is correct :AL90 wrote:BTW:
PureZIP_AddFiles() will get #Null if I e.g. add an Empty Directory and
PureZIP_Archive_Compress() will get -1. I'm not sure if it is normal.
But I think it is IMHO not correct?!
Yes. How I say I use Recursive. (See on Top) I have make a new testgnozal wrote:Do you also have this problem with #PureZIP_Recursive ?
Ok I think I understand you now.This is correct :
PureZIP_Archive_Compress() can't add a directory, it's for files, so you get an error.
Or the other hand, PureZIP_AddFiles() tolerates empty dirs, but an empty dir has no files in it, so it returns 0 (filecount).
In your example you use #PureZIP_RecursiveZeroDirs (2) and not #PureZIP_Recursive (1).AL90 wrote:Yes. How I say I use Recursive.gnozal wrote:Do you also have this problem with #PureZIP_Recursive ?
Code: Select all
MyZip.s="C:\test\zip_test.zip"
MyZIPFile1.s="C:\Test\test_tga.tga"
If PureZIP_Archive_Create(MyZIP.s, #APPEND_STATUS_CREATE)
Debug PureZIP_Archive_Compress(MyZIPFile1.s, #False)
PureZIP_Archive_Close()
EndIf
Note that there is a bug in the PB4.00 file library.Morty wrote:Hi at all.
I have a problem using this lib.
If I add an tga file, this file will be destroyed (inside the zip file and after decompressing). I can't use it after decompression.
I use PB 4.00 running on Win XP Professional. Downloaded the latest version of the library.
Code: Select all
Returned value [only for PureZIP_Archive_Compress() and PureZIP_Archive_Extract()] :
#FALSE : compression / extraction continues
#TRUE : compression / extraction stops !
PureZIP_Archive_Compress() and PureZIP_Archive_Extract() returns #PureZIP_CallbackStop error