[feature request] support Zstandard compressed files

English support for the software AllDup
Post Reply
joshg253
Posts: 2
Joined: 12 Jun 2024, 10:11
Location: Renton, WA
Contact:

[feature request] support Zstandard compressed files

Post by joshg253 »

Hi, love this app.

Running into issues trying to find dupes inside Zstandard (ZSTD) .zip files though:

Code: Select all

ERROR: An error occurred while extracting the file 'best.txt' from the archive 'C:\best.zip': Unsupported Method [Search_CheckandCreateTempFileFromArchive]
therube
Posts: 340
Joined: 07 Nov 2012, 00:28

Re: [feature request] support Zstandard compressed files

Post by therube »

(Wasn't really familiar with ZSTD, though not quite understanding why it would be used in a ZIP itself?)

Anyhow, wonder if the "codec" (plugin) method would work?
(Kind of thinking it won't, but couldn't hurt to try.)
https://github.com/mcmilk/7-Zip-zstd#in ... via-plugin

AllDup already uses 7-zip (7z.exe & 7z.dll) & if ? it is using 7-zip for ZIP (rather then, mtZIP.dll ?), then maybe the above might work? You could try creating said /Codecs/ subdirectory within AllDup's /dep/ directory (so /dep/Codecs/) & maybe ? that might do it (or not)? Might also try placing said codecs directly in the /dep/ directory... (you never know ;-)).

https://www.ghisler.ch/board/viewtopic.php?t=80378
joshg253
Posts: 2
Joined: 12 Jun 2024, 10:11
Location: Renton, WA
Contact:

Re: [feature request] support Zstandard compressed files

Post by joshg253 »

Thanks for the ideas!

tl;dr: replace AllDup's included 7z.exe & 7z.dll with the latest official 7-Zip 32-bit x86 files.

I'm currently using scoop-installed AllDup 4.5.60 PE on Windows 11 Pro 23H2.

The Codecs method did not work:
  • After extracting the Codecs-x32.7z into a "Codecs" subdir in ./dep, running (the AllDup-included v23.01) `7z.exe i` a did indeed show the new formats, however, I got the same errors in AllDup when scanning inside the zstd ZIPs.
Replacing the AllDup 7z.exe & 7z.dll files worked:
(Note: the Codecs dir & contents are unnecessary with this method)
  • After replacing the included 7z.exe & 7z.dll in ./dep with the ones extracted from 7z22.01-zstd-x32.exe it's working like a charm.
  • Then I tried swapping in the latest official x86 7z files (v24.06) extracted from 7z2406.exe and that also worked.
x64 versions of either method did not work.
_josh
Post Reply