MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / CleanCache

Method CleanCache

Explore/Basemap.cpp:209–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void Basemap::CleanCache() {
210 wxString filename;
211 filename << cachePath << separator();
212 wxDir dir(filename);
213 if (dir.IsOpened()) {
214 wxString file;
215 bool cont = dir.GetFirst(&file);
216 while (cont) {
217 file = filename + wxFileName::GetPathSeparator() + file;
218 if (wxFileName::FileExists(file)) wxRemoveFile(file);
219 cont = dir.GetNext(&file);
220 }
221 }
222}
223
224void Basemap::SetupMapType(BasemapItem& _basemap_item) {
225 basemap_item = _basemap_item;

Callers 1

CleanBasemapCacheMethod · 0.80

Calls 1

separatorFunction · 0.85

Tested by

no test coverage detected