Feature request #20171
Unable to create a folder within the file name widget when saving layers
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||27992|
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
#2 Updated by Harrissou Santanna about 2 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.