// approximately atomic delete + rename operation
SGPath cacheName(localPath);
cacheName.append(DAV_CACHE_NAME);
- if (cacheName.exists()) {
- cacheName.remove();
- }
p.rename(cacheName);
}
Dir d(localPath);
if (depth >= MAX_UPDATE_REPORT_DEPTH) {
- SG_LOG(SG_IO, SG_INFO, localPath << "exceeded MAX_UPDATE_REPORT_DEPTH, cleaning");
d.removeChildren();
return;
}