[MRT] Folders with "." and Extensions

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

[MRT] Folders with "." and Extensions

Post by *Balderstrom »

Somehow this does not seem correct to me

When you have something like:
--> A.Folder.With.Dots.In.It's.Name
Rename Mask: [N]
Ext: [E]

[x] Regexp

Find: ^A.Folder.With.Dots.In.It's.Name$
Replace: <Blank>
There is no match unless "[x] E" extension for the file is enabled.
As everything after the second period/dot is considered a file extension.

This doesn't even match CMD-line/batch rules, wherein the extension would be ".Name"

I would think that within the MRT folders should either:
1) Not have an extension at all, or
2) At least match CMD-line rules and the text after the last period would be the extension...

NOT all of the text/characters after the 2nd period.
User avatar
petermad
Power Member
Power Member
Posts: 16118
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Have you checked whether SortDirExt=1 has any effect on this MRT problem with folder names?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed TC sees the last part of a folder after the last dot as the "extension" too - it's debatable whether this should be treated as an extension or not. It would probably break many stored rename masks if I would change it now...
Author of Total Commander
https://www.ghisler.com
Post Reply