Version: unspecified (using KDE 4.5.1) OS: Linux When creating a new directory within Dolphin, or by selecting the 'New Folder' button in a Save File dialog the user is able to enter in a string such as 'foo/bar'. This results in a directory being created called 'foo/bar' - with the forward slash. This can causes confusion and directories shouldn't contain this char that represents the forward slash. Reproducible: Always Steps to Reproduce: 1) Open Dolphin -> File -> Create New -> Folder ... 2) Enter in 'foo/bar' 3) Press 'ok' Actual Results: A directory is created with the name 'foo⁄bar': [acartwright:~]$ ls -1 | grep foo foo⁄bar [acartwright:~]$ cd foo⁄bar/ [acartwright:~/foo⁄bar]$ ls [acartwright:~/foo⁄bar]$ cd ../ [acartwright:~]$ Expected Results: Either an error message, or create sub folders from the provided name. i.e ~/foo and ~/foo/bar directories should have been made.
mkdir foo/bar mkdir: kann Verzeichnis „foo/bar“ nicht anlegen: Datei oder Verzeichnis nicht gefunden mkdir -p foo/bar
Are you sure the '/' character isn't replaced with '⁄'? Note that these are different Unicode characters, and it may depend on the font whether you actually see a difference.
You are right. 2 different chars: If I copy "foo⁄bar" from dolphin to gvim and search for '/' only the '/' I entered in gvim directly is found. So dolphin and konsole are consistent.
Yes it is a different char, however Konsole displays it as the normal '/' char here. Either way, it causes confusion since it's creating a directory named something I didn't want. Personally I feel it would be best to allow a name such as 'foo/bar' to create the 'foo' directory and then 'bar' within that.
Konsole with Monospace 12: /: 0x2F (input dolphin) ⁄: 0xE2 0x81 0x84 (output dolphin/Konsole) Using Okteta you can see that the slopes of the UTF-8 slashes are different.
KCharSelect > SOLIDUS '/' alias slash > FRACTION SLASH '⁄' alias solidus Have fun with confusion
When the user creates a folder named "Holiday 2009/2010" he surely does not want "2010" to be a subdirectory. There could be a message stating that '/' characters are not allowed in names, and giving the user the option * to revert and enter a different name * to replace that char with the similar looking '⁄' or a non-similar '_' char. * to ask if he really wants to create a two-level directory hierarchy. IMHO silently replacing the character is not nice. Are there any other characters which are not valid in file/directory names? How do other applications handle that?
*** Bug 358567 has been marked as a duplicate of this bug. ***
At the moment there is an inconsistency in Dolphin. Attempting to create a folder called "aaa/bbb" will bring up info text: Using slashes in folder names will create sub-folders, like so: aaa/ bbb/ But attempting to create a new text file called "aaa/bbb.txt" will actually create "aaa⁄bbb.txt", silently replacing the slash character with a near lookalike. I don't like the inconsistency between the two procedures, and I particularly don't like the silent replacement of the current Create New Text File procedure. I suggest that the Create New Text File (etc.) procedure should work the same as Create New Folder, i.e. if the user enters a "/" in the new file name, it would show the info text and make a folder hierarchy if the user continues. I suppose there *might* be some people who regularly create new files with "/" in the name and like the fact that it automatically changes to "⁄" rather than creating a hierarchy, but I doubt there's many. They can always manually type in "⁄" if necessary. (https://unicodeplus.com/U+2044).