Uppercase extensions after packing

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Uppercase extensions after packing

Post by *Damel »

Hi, if one file is packed, then lowercase extension is used -> filename.zip/rar, but when multiple files are packed, then is used strangely uppercase extension -> filename.ZIP/RAR. Please use lowercase extension if multiple files are packed. Thank you.
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It depends on the base name:
- one file -> that file name is taken as base for ZIP.
- multiple files -> folder name is used.

If folder name is upcase, TC uses upcase for zip too.
Author of Total Commander
https://www.ghisler.com
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Post by *Damel »

Thak you for the explanation, but it is part of bigger lower/uppercase inconsistency:
c:\FILE.EXE -> FILE.ZIP
c:\FILE.RAR -> pack.zip

From my point of view is not good to have mishmash of zip, ZIP, rar, RAR,... I must rename them always. Is there some strong reason to not to use always lowercase ext for created archives?
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Packing single archives also uses the folder name by default, otherwise you risk to pack an archive to itself.
Author of Total Commander
https://www.ghisler.com
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Post by *Damel »

I see it now (c:\), thanks. But the need to rename every day several archives in various ways persists. :(
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Packing single archives naming (Re: Uppercase extensions after packing)

Post by *DrShark »

ghisler(Author) wrote: 2016-12-15, 15:25 UTCPacking single archives also uses the folder name by default, otherwise you risk to pack an archive to itself.
This behavior is very inconvenient for me, because in this case I usually change auto-suggested parent folder name part of archive name in Pack files dialog anyway. If pack dialog will just auto add additional extension (e.g. we're packing example.zip to zip -> it will use example.zip.ZIP as auto suggested name), the risk to pack an archive to itself will go to zero, at least for experienced users (maybe more risks will exist if long names are turned off in TC with cm_switchlongnames, but such action is also usually done by experienced users on purpose, so they should be aware of consequences and be extra careful in such situations). Please consider changing that behavior so naming for single archive to pack will follow regular single file pack rule, at least as an option turned off by default.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply