Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Is it possible to compress many files in one GZ file?
Re: Is it possible to compress many files in one GZ file? [message #55675 is a reply to message #55668] |
Sun, 29 November 2020 20:38 |
|
mirek
Messages: 14105 Registered: November 2005
|
Ultimate Member |
|
|
Patisab wrote on Sun, 29 November 2020 10:16Hello,
When i try to compress many files in one GZ file, only the last one is in it. Well, i think that GZ file is always open for writing only, not for writing and appending.
Now, it's looking like that :
FindFile ffFic;
String lFic, lGz;
lFic = "FicLog.log.*";
lGz = "FicLog.gz";
if (ffFic.Search(lFic) && PromptYesNo("Delete log files?")){
do {
GZCompressFile(lGz.ToString(),ffFic.GetPath().ToString());
FileDelete(ffFic.GetPath());
} while (ffFic.Next());
}
I have three questions to submite to you :
- Do you see some problems with the code?
- Can it be possible to append files with the GZCompressFile function? If yes, how?
Thank you very much for your help.
Best regards.
Well, that is the nature of .gz, it is just one file...
I guess what you mean is .tar.gz? (No support for tar in U++ yet, sorry).
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:23:46 CET 2024
Total time taken to generate the page: 0.01578 seconds
|