inconsistency in separating file name / extension

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

inconsistency in separating file name / extension

Post by *StatusQuo »

Inspired (again) by a german thread:
TC is inconsistent in deciding where a file name ends and its extension begins.
Example:
  • You have a file "Track01.mp3"
  • Use Shift-F6 to rename it, enter "EtudeNr.1.*"
Result I would expect: "EtudeNr.1.mp3"
Result I get: "EtudeNr.1.3"

As stated here "there's no logical way to do it".

OK - so while applying the file mask for renaming (or copying), the first dot has separated the extension (what I consider confusing - however...).
But if you now use Shift+F6, Shift+F6 to select only the name part of the result, the last dot is used to separate the extension (like I would have expected already while copying:
name = "EtudeNr.1", extension = "3" ).


:arrow: Could TC treat this consistently either one way or the other, please?
(preferrably treating the last dot as separator for the extension)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

As stated here "there's no logical way to do it".
That's exactly the problem. I'm trying the method which is the most logical in most cases, the same as used when using the ren/rename command on a command line.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Hm, on the command line (Win2k SP4 and XP SP2)

Code: Select all

ren Track01.mp3 EtudeNr.1.*
results in
  • "EtudeNr.1"
here, ignoring the specified ".*" in the rename mask.
TC's rename results in
  • "EtudeNr.1.3"
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply