[solved] Display of date and time not always updated inside zip files

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14791
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[solved] Display of date and time not always updated inside zip files

Post by *petermad »

Sometimes after changing a file inside a zip-file, the size and date of the changed file is not updated in the file panel. It only happens if the size and date of the containing zip-file is the same before and after the change.

To reproduce:
1. download this file: http://madsenworld.dk/tcmd/ziptest.zip .
2. Enable "Configuration" -> "Zip packer" -> "Set ZIP date to newest file".
3. Set the system time to a date or time that lies before the timestamp of the wciconex.inc file inside ziptest.zip - e.g. March 26th 2010.
4. Open ziptest.zip
5. Open the Descript.ion file in a text editor.
6. Add one space character (not more) to the start of Descript.ion. This will not change the size of this zip-file when repacked.
7. Save the file and close the editor.
8. Answer Yes, when TC asks to repack the file into ziptest.zip.
9. Notice that neither the size nor the date of Descript.ion is changed in the file panel!
10. Exit and re-enter ziptest.zip - still no changes to size and timestamp.
11. Open another zip-file in the same dir, close it and reopen ziptest.zip - now the changes to size and time is visible. You can also close and reopen TC instead.
12. Remember to restore your system time!

This can seem like a small bug, but if the ziptest.zip for example is contained in another zip file, TC does not recognize the change of ziptest.zip and hence doesn't offer to repack ziptest.zip into the mother zip file - and you will loose the changes you have made to ziptest.zip!

Some way TC should be forced to update the file panel after repacking - also when the size and time of the zip-file itself is unchanged.
Last edited by petermad on 2021-05-30, 18:32 UTC, edited 3 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This happens when both the zip file size and its time stamp remain the same. TC then doesn't notice the change. This behaviour is by design to avoid slow time consuming re-reading of archives.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14791
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, maybe an ini-file option to force rereads after repacking would be in place. I almost lost data because of this the other day.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you check whether there are other cases where the archive isn't refreshed? I can try to clear the cache manually in these cases...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14791
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, there are the cases of missing refresh of the file list inside archives when "Use long names" or "Show old 8.3 filenames lowercase" is changed - as previously reported in the beta forum: "Unresolved problems" -> "Files list not refreshed at file display changes in archives".

Maybe just make it possible to manually refresh the view by pressing Ctrl+R / F2 inside archives?
Last edited by petermad on 2010-03-30, 16:48 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately thats an unresolvable problem. However, I found a solution for your problem now.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14791
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Fixed in TC 7.55pb2 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply