F5 and "Unpack path names if stored with files"

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

F5 and "Unpack path names if stored with files"

Post by *milo1012 »

There seems to be a glitch with the "Unpack path names if stored with files" option.
I doubt that it's by design, but maybe I'm wrong.

At first I thought it is limited to wcx plug-ins, but it's seems to affect internal unpackers also.

If you have at least one files in a sub-dir (no matter how deep)

Code: Select all

archive.zip/dir1\file1.txt
archive.zip/dir2\subdir\file2.txt
just select/highlight the archive (without opening it via Return/Ctrl+PgDown), use Alt+F9
and deselect Unpack path names if sored with files.
Result: only file1.txt and file2.txt in the out-dir, just as expected.

Code: Select all

outdir\file1.txt
outdir\file2.txt
But: opening the archive, selecting dir1 and dir2 (or everything), and using F5 or mouse D&D, deselecting Unpack path names if sored with files results in:
file1.txt and file2.txt, AND an empty dir "dir1" and an empty dir "dir2" (i.e. w/o subdir) being created.

Code: Select all

outdir\file1.txt
outdir\file2.txt
outdir\dir1\
outdir\dir2\
So it just seems to affect the F5 copy mechanism,
because when using Alt+F9 inside the archive (no matter what is selected), everything works as expected.


Tested with 8.51a and 8.52a.
TC plugins: PCREsearch and RegXtract
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Confirmed.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This isn't a bug - if dirs are stored, they will also be unpacked (but without full path in case of nested dirs).
Author of Total Commander
https://www.ghisler.com
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

I see.
But why is there a difference between F5 and using Alt+F9?

If I select every file and dir in the root of the archive, there shouldn't be any difference to extracting the whole archive, i.e. Alt+F9 should do the same.
The logic isn't consistent, for my understanding.
TC plugins: PCREsearch and RegXtract
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

???
Aren't the dirs also unpacked with F5 when you select them?
Author of Total Commander
https://www.ghisler.com
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

ghisler(Author) wrote:Aren't the dirs also unpacked with F5 when you select them?
Like I said:

Selecting everything in the root of the archive and using:

F5: files and dirs (without full path in case of nested dirs) created

Alt+F9: only files created


And: using Alt+F9 on the pure archive, without opening it via Return/Ctrl+PgDown: the same as Alt+F9 inside the archive.
TC plugins: PCREsearch and RegXtract
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is that when you select these dirs yourself for unpacking, you may expect that they get unpacked. But it's probably better to unify the Alt+F9 and F5 methods...
Author of Total Commander
https://www.ghisler.com
Post Reply