| 128 | /************************************************************************/ |
| 129 | |
| 130 | void 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() */ |
no test coverage detected