Bug 407035 - Mass rename sometimes preserves extensions for directories
Summary: Mass rename sometimes preserves extensions for directories
Status: RESOLVED INTENTIONAL
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 18.12.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-28 23:06 UTC by Joe Dight
Modified: 2020-09-14 16:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Dight 2019-04-28 23:06:46 UTC
SUMMARY
When mass renaming with dolphin, if a folder's name ends with a stop then one or two characters, which are both the same, then these characters are preserved in the final folder's name.

STEPS TO REPRODUCE
1. Create two folders, test.aa and test2.ab, in an empty folder
2. Select both and right-click -> rename
3. Enter # into the rename pattern box, and 1 as the initial number.

OBSERVED RESULT
Two folders are created: 1.aa and 2

EXPECTED RESULT
The folders should be named 1 and 2

SOFTWARE/OS VERSIONS
Fedora 30
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
Comment 1 Christoph Feck 2019-05-16 00:21:13 UTC
Dolphin checks for known extensions. A folder named "test.jpeg" will keep its extension on rename, like it is kept for renaming files.

I am not sure if there are registered folder name extensions, such as for mailbox directories etc. If there are, they really should be preserved.

Maybe the MIME database knows extensions that apply to folder names.
Comment 2 Joe Dight 2020-09-14 16:52:32 UTC
Okay, I can see that this is intentional.