Home » U++ Library support » U++ Library : Other (not classified elsewhere) » bug in the routine involving the time of the zip file (time parameter in the method WriteFile class Zip )
bug in the routine involving the time of the zip file [message #59329] |
Thu, 15 December 2022 23:24  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
using the routine for saving compressed files in the zip file, I found that in some cases there is divergence from the time passed as parameter. I performed tests, just like the attached image. That is, if you save a file that was modified at a certain "second", the routine, for some wrong reason, saves it at the later or lower second
(very strange, as if the seconds were rounded off!)
Thanks!
void addzip(String fnOrig){
FileZip zip("c:\\temp\\compress.zip");
FindFile fff(fnOrig);
while(fff) {
if(fff.IsFile()) {
String s=fff.GetPath();
zip.WriteFile(LoadFile(s), fnOrig,ab,fff.GetLastWriteTime() );
}
fff.Next();
}
zip.Finish();
};
-
Attachment: zip.png
(Size: 142.82KB, Downloaded 112 times)
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:14:19 CEST 2025
Total time taken to generate the page: 0.00936 seconds
|