Feature request #20171

Unable to create a folder within the file name widget when saving layers

Added by Harrissou Santanna about 6 years ago. Updated about 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:27992

Description

let's take a temporary layer you'd like to make permanent
Click on the icon, opening the "save scratch layer" dialog
browse to a folder and select/enter the name of the file
Now in the "file name" line edit widget, modify the path: replace a folder with a non-existing one
Normally, QGIS will just create the missing folder (as long as the user has rights) and add the new file in it.
Now you get a:

Could not make temporary scratch layer permanent.
Error: Creation of layer failed (OGR error: Failed to create file E:\GitHub\QGIS-Training-Data\exercise_data\shapefile\places.shp: No such file or directory)

I had to create the "shapefile" folder before it saves the data.
Also occurs when using the "save features as..." tool and maybe other widgets

History

#1 Updated by Alessandro Pasotti about 6 years ago

Are you sure this is really a regression?

#2 Updated by Harrissou Santanna about 6 years ago

  • Tracker changed from Bug report to Feature request

Actually, no. Just tested on 2.18 and at least there, it does seem to be the same behavior: OK is disabled until the filename contains an existing folder. No way to create folder directly. Weird I've never noticed.
Sorry for the noise. Moving it to feature request then.

#3 Updated by Giovanni Manghi about 6 years ago

  • Priority changed from High to Normal

Also available in: Atom PDF