void dirIndexUpdated(const std::string& hash)
{
- SGPath fpath(_relativePath);
+ SGPath fpath(absolutePath());
fpath.append(".dirindex");
_repository->updatedFileContents(fpath, hash);
if (it == children.end()) {
SG_LOG(SG_TERRASYNC, SG_WARN, "updated file but not found in dir:" << _relativePath << " " << file);
} else {
- SGPath fpath(_relativePath);
+ SGPath fpath(absolutePath());
fpath.append(file);
if (it->hash != hash) {
ok = _repository->deleteDirectory(fpath.str());
} else {
// remove the hash cache entry
- _repository->updatedFileContents(fpath, std::string());
+ _repository->updatedFileContents(p, std::string());
ok = p.remove();
}
delete d;
// update the hash cache too
- updatedFileContents(path, std::string());
+ updatedFileContents(d->absolutePath(), std::string());
return result;
}