// approximately atomic delete + rename operation
SGPath cacheName(localPath);
cacheName.append(DAV_CACHE_NAME);
- if (cacheName.exists()) {
- cacheName.remove();
- }
p.rename(cacheName);
}
}
SGPath path = fsDir().file(nm);
- dav->removeChild(child);
- delete child;
if (child->isCollection()) {
Dir d(path);
} else {
path.remove();
}
-
+
+ dav->removeChild(child);
+ delete child;
+
writeCache();
}
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;
}