OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.79k stars 2.51k forks source link

OpenFileGDB: DeleteDataSource() does not delete FGDB directory #7216

Closed phanuel closed 1 year ago

phanuel commented 1 year ago

Expected behavior and actual behavior.

The DeleteDataSource() implementation of the OpenFileGDB driver only deletes the files inside the FGDB directory but not the directory itself. Since the FGDB format is a directory-based format, I expect this method to also delete the folder.

Steps to reproduce the problem.

var driver = Ogr.GetDriverByName("OpenFileGDB"); driver.DeleteDataSource(fgdbPath);

Operating system

Windows 10 Enterprise 21H2

GDAL version and provenance

C# binding of GDAL v3.6.2 (NuGet)

phanuel commented 1 year ago

Thank's a lot @rouault!