GNOME Bugzilla – Bug 596461
New Folder creation in GtkFileChooserDialog doesn't catch slashes
Last modified: 2015-07-04 05:26:18 UTC
1) In any app (using GtkFileChooserDialog to save: an example is gedit), choose "Save". 2) Click the "Browse for other folders" expander 3) Click "Create Folder" 4) type in a name such as "a/b" 5) The following error message is shown: "The folder could not be created", "Error creating directory: no such file or directory" For reference, if instead such a name is chosen for a new folder in Nautilus, the following, right, message, is shown: "The item could not be renamed", "Sorry, could not rename "untitled folder" to "a/b": Slashes are not allowed in filenames". (evidently, in the FileChooserDialog, the presence of "/" must be catched) Another way to see it is that if instead a folder "a" already exists, executing operations 1)-4) creates a folder "b" _inside_ "a", which again is not what an user would expect.
*** This bug has been marked as a duplicate of bug 593410 ***
Matthias: notice this is about folders creation, not about the filename. While I understand that a user may want to write in the address bar the full path of a file to be saved in a given subdir, I think it makes less sense to write a full path as the name of a folder which was just created. Or if this is done, I expect no error message, but rather than all required dirs are created. So I don't think this is a duplicate - but I'm not reverting your action, maybe you have in mind something I don't understand.
We warn about invalid names on directory creation now