Bug 493354 - Renaming folders with "/" has a different behaviour than creating folders with "/"
Summary: Renaming folders with "/" has a different behaviour than creating folders wit...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.9.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL: https://bugs.kde.org/show_bug.cgi?id=...
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-09-19 11:51 UTC by Fernando M. Muniz
Modified: 2025-01-07 06:29 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Renaming folders has diferent rules than creating them. (1.23 MB, video/mp4)
2024-09-19 11:51 UTC, Fernando M. Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando M. Muniz 2024-09-19 11:51:37 UTC
Created attachment 173861 [details]
Renaming folders has diferent rules than creating them.

The attachment demonstrates the inconsistency.
Comment 1 Noah Davis 2024-09-19 11:59:04 UTC
You can create folders with / (U+002F, SOLIDUS), but you're right that there is an inconsistency. When creating a folder, / creates subfolders. When renaming folders, / appears to be replaced with ∕ (U+2215, DIVISION SLASH)
Comment 2 Fernando M. Muniz 2024-10-10 07:11:51 UTC
Now Plasma 6.2 allows you to create a folder with "/" but nothing happens.
It fails when you try to create "/someletter".
Comment 3 Méven Car 2024-10-31 15:10:14 UTC
The create directory dialog has some logic to interpret "/" as new-folder to mimic "mkdir -p".
As such it has limitations to which characters can be used in names.

This was a trade-off the need to create folder whore name contain "/" is rather uncommon compared to use of creating multiple subfolders at once.

Renaming folders inline has not such a need and allows to had / to folder names as that can be a valid name.

We could have the dialog allow "/" to be escaped with "\/".
This would still have the "inconsistency".
But I don't consider this a real one: the dialog is clearly not the same thing as inline renaming and creating is not renaming.

Now  Fernando M. Muniz  what do you think should be the behavior of the create folder dialog ?

This behavior is much older than KDE Frameworks 6.0.
Comment 4 Fernando M. Muniz 2024-10-31 20:30:34 UTC
(In reply to Méven Car from comment #3)
> The create directory dialog has some logic to interpret "/" as new-folder to
> mimic "mkdir -p".
> As such it has limitations to which characters can be used in names.
> 
> This was a trade-off the need to create folder whore name contain "/" is
> rather uncommon compared to use of creating multiple subfolders at once.
> 
> Renaming folders inline has not such a need and allows to had / to folder
> names as that can be a valid name.
> 
> We could have the dialog allow "/" to be escaped with "\/".
> This would still have the "inconsistency".
> But I don't consider this a real one: the dialog is clearly not the same
> thing as inline renaming and creating is not renaming.
> 
> Now  Fernando M. Muniz  what do you think should be the behavior of the
> create folder dialog ?
> 
> This behavior is much older than KDE Frameworks 6.0.

I believe that if Bug 494988 gets confirmed, then this bug loses its reason for existing.
Comment 5 Fernando M. Muniz 2024-11-02 06:56:55 UTC

*** This bug has been marked as a duplicate of bug 494988 ***