in sdk/src/resumable/ResumableDownloader.cc [276:300]
int ResumableDownloader::validate(PdsError& err)
{
genRecordPath();
if (hasRecordPath()) {
if (0 != loadRecord()) {
removeRecordFile();
}
}
if (hasRecord_) {
if (0 != validateRecord()) {
removeRecordFile();
if (0 != prepare(err)) {
return -1;
}
}
}
else {
if (0 != prepare(err)) {
return -1;
}
}
return 0;
}