Page 1 of 1

Uppercase extensions after packing

Posted: 2016-12-15, 14:18 UTC
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.

Posted: 2016-12-15, 14:38 UTC
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.

Posted: 2016-12-15, 15:12 UTC
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?

Posted: 2016-12-15, 15:25 UTC
by ghisler(Author)
Packing single archives also uses the folder name by default, otherwise you risk to pack an archive to itself.

Posted: 2016-12-15, 15:31 UTC
by Damel
I see it now (c:\), thanks. But the need to rename every day several archives in various ways persists. :(

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

Posted: 2020-02-06, 06:04 UTC
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.