Panel not refreshed when zipped file deleted

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Panel not refreshed when zipped file deleted

Post by *MarcinW »

There is a test.zip file attached below, with the following structure: "test.zip\dir\file.txt".

The problem is that when going to "file.txt" and deleting it, it is still displayed in TC. Then, when trying to view "file.txt" with F3, "Error in packed file" message is displayed.

Regards

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.zip"

UEsDBBQAAgAIAIZqjEoMfn/YBgAAAAQAAAAMABUAZGlyL2ZpbGUudHh0dXARAAE+6DlRZGlyL2Zp
bGUudHh0K0ktLgEAUEsBAhQLFAACAAgAhmqMSgx+f9gGAAAABAAAAAwAFQAAAAAAAQAgAAAAAAAA
AGRpci9maWxlLnR4dHVwEQABPug5UWRpci9maWxlLnR4dFBLBQYAAAAAAQABAE8AAABFAAAAAAA=
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a known limitation in TC which cannot currently be fixed. The problem is that the directory "dir" isn't stored in this zip, just the file file.txt with relative path "dir". So when TC tries to re-read the archive after deleting, it cannot find the directory "dir" any more and cancels the update.
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

I see. So what about going to the root directory of the archive in this case? This would be more convenient than the current behavior, where the user must do this manually.

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That would be an option, but it could have so many side effects that I don't want to change it now, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

This is in fact not a very urgent problem. Maybe you could put it on your to-do list?

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I already added it!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.20 beta 1, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC 9.20rc1 when testing with MarcinW's test file :-)
Last edited by petermad on 2018-05-07, 13:28 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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Fixed, thanks!
Post Reply