MCPcopy Index your code
hub / github.com/MapServer/MapServer / CleanVSIDir

Function CleanVSIDir

mapgdal.c:130–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128/************************************************************************/
129
130void CleanVSIDir( const char *pszDir )
131
132{
133 char **papszFiles = CPLReadDir( pszDir );
134 int i, nFileCount = CSLCount( papszFiles );
135
136 for( i = 0; i < nFileCount; i++ )
137 {
138 if( strcasecmp(papszFiles[i],".") == 0
139 || strcasecmp(papszFiles[i],"..") == 0 )
140 continue;
141
142 VSIUnlink( papszFiles[i] );
143 }
144
145 CSLDestroy( papszFiles );
146}
147
148/************************************************************************/
149/* msSaveImageGDAL() */

Callers 2

msSaveImageGDALFunction · 0.85
msDrawWMSLayerLowFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected