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