Re: [gdal-dev] Deleting files associated with GDALDataset

2008-12-03 Thread Even Rouault
Generally (Always?) in GDAL, char** arrays are terminated by a NULL pointer. You can also use CSLCount()... to get the size of the array, and it actually loops until it finds the terminating NULL pointer. But the simplest solution is to use GDALDeleteDateset() which is the exact implementation o

[gdal-dev] Deleting files associated with GDALDataset

2008-12-03 Thread Chris Padwick
Hi, Does anybody know the right way to delete the files associated with a GDALDataset from disk? It looks like I can call GDALDataset->GetFileList() and get a char** with the list of files comprising the dataset. But I don't know how many files there are in the list so I'm not sure how to loo