Prateek Kumar Nischal
10/04/2020, 8:18 PMif (stat(row.at("path").c_str(), &file_stat)) {
// set ctime, atime, mtime
} else {
VLOG(1) << "Failed to stat path: " << row.at("path");
// set ctime, atime, mtime to 0
}
Shouldn’t it be
if (!stat(row.at("path").c_str(), &file_stat)) { .. }
stat(2) returns 0 on success.