Fixing "Error: creation of data source failed (OGR error:Failed to create directory .shp for shapefile datastore.)"
You did not specify a file name for the export.
In that case, QGIS tries to add ".shp" to a blank file name, which causes the error message you get.