title: how to generate shapfiles into a spcific folder
body: <p>i am using geopandas package, and in the below code i want to modify the following line:</p>
  <pre><code>LIDARGDF.to_file(filename='LIDAR-Data.shp', driver=&quot;ESRI Shapefile&quot;)
  </code></pre>
  <p>so that the generated .shp files are to be placed inside a particular folder called <code>out</code> for example.
  to achieve that i did the following:</p>
  <pre><code>LIDARGDF.to_file(filename='/out/LIDAR-Data.shp', driver=&quot;ESRI Shapefile&quot;)
  </code></pre>
  <p>however python generated an error and does not allow creating the folder <code>out</code>
  please let me know how to modify the below posted code so it generates the .shp files into a specific folder</p>
  <p><strong>code</strong></p>
  <pre><code>featuresAsPolygonCoordinates3DInEPSG25832 = getFeaturesAsPolygonCoordinatesInEPSG25831(featuresAsPolygonCoordinates3DInEPSG4326)
  LIDARAsPolygonGeometry = bindPolygonCoordinates(getPolygonsLongitudeValuesArray(), getPolygonsLatitudeValuesArray())
  LIDARGDF = buildGeoDataFrameForGeometry(LIDARAsPolygonGeometry)
  LIDARGDF.to_file(filename='LIDAR-Data.shp', driver=&quot;ESRI Shapefile&quot;)
  </code></pre>