Created attachment 173861 [details] Renaming folders has diferent rules than creating them. The attachment demonstrates the inconsistency.
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)
Now Plasma 6.2 allows you to create a folder with "/" but nothing happens. It fails when you try to create "/someletter".
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.
(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.
*** This bug has been marked as a duplicate of bug 494988 ***