Incorrectly skipping hidden files in archive

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
abe65
Junior Member
Junior Member
Posts: 2
Joined: 2017-03-05, 17:35 UTC

Incorrectly skipping hidden files in archive

Post by *abe65 »

Hi,

If I pack a folder(s) (it doesn’t matter which packer I use – ZIP, RAR etc.)
and check both options: [x]Create separate archive and [x]Leave out base directory
and in Configuration Options Display option []Show hidden files is unchecked
then hidden files in this folder are incorrectly skipped in archive.

If [x]Show hidden files is checked then everything is OK.

Best regards,
Adam
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I see the inconsistent behaviour:

[ ]Create separate archive
=> hidden files are copied

[x]Create separate archive and [x]Leave out base directory
=> hidden files are NOT copied

Well, this seems to be due to the fact that:
a) with unchecked option the packing uses directory name only.
=> packing is done without knowing about any file name in advance
=> packing cannot apply any filter for files

b) with checked option the packing uses a list of filenames.
=> packing can apply filter for files
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, sqa_wizard is right about what's happening!
Author of Total Commander
https://www.ghisler.com
abe65
Junior Member
Junior Member
Posts: 2
Joined: 2017-03-05, 17:35 UTC

Post by *abe65 »

Thank you very much for your explanation.
Post Reply