File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Moderators: white, Hacker, petermad, Stefan2

Post Reply
lelik007
Junior Member
Junior Member
Posts: 25
Joined: 2021-04-20, 06:37 UTC

File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Post by *lelik007 »

Hello Christian, I found out that TC 11.03 does not understands these extensions right.

First (Zstandard) - It opens .tzst files like .zst - it's not right because .tzst = tar.zst and should be opened as tar.zst
because If we open .tzst files as just .zst we can't see .tar inside but a file without extension.

Second (Brotli) - It doesn't know at all that .tbr = tar.br I didn't find another way to prove it other than:
https://lists.gnu.org/archive/html/bug-tar/2017-10/msg00003.html - you can find .tbr there.
In Lunux .tbr means tar.br but for Windows I'm not so sure but .tgz = .tar.gz

I created a small archive for you to see. Test.tar.zst - is a right behavior. Test.tzst is wrong but the archives are the same.
https://drive.google.com/uc?export=download&id=1XS37ab8kfarz1FirM7tcIsacDhO1D5XN

Sorry for creating a topic in a wrong place at the first time.
Last edited by lelik007 on 2024-04-07, 14:10 UTC, edited 4 times in total.
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: File extension issue (.tzst, .tbr)

Post by *MaxX »

Hm...
history.txt wrote:17.02.23 Added: Unpack BROTLI files with extensions .br . Please note that BROTLI files cannot be detected by content, so other files with that extension can cause an error when unpacking/testing archives (32/64)
17.02.23 Added: Unpack ZSTD files with extensions .zst and .tzst (=.tar.zst) on Windows XP and newer (32/64)
15.02.23 Added: Unpack ZIP files with ZSTD (by Facebook) compression on Windows XP and newer (32/64)
Well. I don't see any ".tbr" there.
Is is supported elsewhere?
Ukrainian Total Commander Translator. Feedback and discuss.
lelik007
Junior Member
Junior Member
Posts: 25
Joined: 2021-04-20, 06:37 UTC

Re: File extension issue (.tzst, .tbr)

Post by *lelik007 »

Brotli archives with any extension are not very widespread even in Linux. I don't know if it's defined somewhere but it definitely might be .tbr = tar.br
It's not very critical for me, but about .tzst this is.
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: File extension issue (.tzst, .tbr)

Post by *MaxX »

2lelik007
Should it be ".tzs" instead of ".tzst"?
Ukrainian Total Commander Translator. Feedback and discuss.
lelik007
Junior Member
Junior Member
Posts: 25
Joined: 2021-04-20, 06:37 UTC

Re: File extension issue (.tzst, .tbr)

Post by *lelik007 »

No, It's not about this. As you've mentioned:
Unpack ZSTD files with extensions .zst and .tzst (=.tar.zst) on Windows XP and newer (32/64)
This means .tar.zst and .tzst should be opened the same way but TC opens them differently.

In the archive I've provided Test.tar.zst and Test.zst are the same files just with the different extensions.
If we open Test.tar.zst we see Test.tar inside - this is right, but if we open Test.tzst - we see Test - without any extension - this is wrong.

But if Test.tzst were Test.zst this would be right that a file has no extension. I mean if you rename Test.tar.zst, Test.tzst > Test.zst or Test.tbr, Test.tar.br > Test.br and see no file extension in an archive - this is exactly right because TC just doesn't know anything about tar in this case.

I re-uploaded an archive for testing to Google Drive and checked it wth virustotal so is not a problem to see the difference.
Last edited by lelik007 on 2024-04-07, 14:08 UTC, edited 5 times in total.
lelik007
Junior Member
Junior Member
Posts: 25
Joined: 2021-04-20, 06:37 UTC

Re: File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Post by *lelik007 »

More of it:

The latest 7-zip opens both files right but ZSTD method only exists in beta for now.

https://7-zip.org/a/7z2404-x64.exe
https://7-zip.org/a/7z2404.exe

About .tbr - I don't think there's any standard exists because Brotli itself is not a standard and not a very common thing.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6499
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Post by *Horst.Epp »

lelik007 wrote: 2024-04-07, 04:58 UTC More of it:

The latest 7-zip opens both files right but ZSTD method only exists in beta for now.

https://7-zip.org/a/7z2404-x64.exe
https://7-zip.org/a/7z2404.exe

About .tbr - I don't think there's any standard exists because Brotli itself is not a standard and not a very common thing.
So use the actual 7-zip 24.04 beta with the Total7zip plugin.
No problem with this version in TC.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
lelik007
Junior Member
Junior Member
Posts: 25
Joined: 2021-04-20, 06:37 UTC

Re: File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Post by *lelik007 »

This may work but IDK exactly because I don't use either 7-zip nor Total7zip myself. TC uses the author's (Yann Collet) code in TCZSTD64.dll to unpack .zst. And, obviously, TC7Z64.DLL is 7zxa.dll for .7z. By the way 7-zip doesn't use Yann Collet's code but rather an own Igor Pavlov's implementation based on a format.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Post by *ghisler(Author) »

zst files do not store the name of the inner packed file, so TC just cuts off the extension. To open the inner .tar file, just use Ctrl+PageDown instead of Enter.
Author of Total Commander
https://www.ghisler.com
lelik007
Junior Member
Junior Member
Posts: 25
Joined: 2021-04-20, 06:37 UTC

Re: File extension issue (.tzst, .tbr) with packers Zstandard+Brotli

Post by *lelik007 »

2ghisler(Author)
To open the inner .tar file, just use Ctrl+PageDown
This is exactly what I do. And now when I know how TC acts I can just rename these files.
so TC just cuts off the extension.
Because now I understand why .tzst means the same for TC as .zst And also it would act for .tbr this way.
It's OK - not a big deal. I think the topic should be closed.
Post Reply