szaszm commented on code in PR #1311:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1311#discussion_r854293640


##########
extensions/standard-processors/processors/GetFile.cpp:
##########
@@ -234,15 +235,15 @@ bool GetFile::fileMatchesRequestCriteria(std::string 
fullName, std::string name,
 
 #ifdef WIN32
   struct _stat64 statbuf;
-  if (_stat64(fullName.c_str(), &statbuf) != 0) {
-    return false;
-  }
+  const auto stat_result = _stat64(fullName.c_str(), &statbuf);

Review Comment:
   I realized that I could use std::filesystem::last_write_time the same way as 
utils::file::last_write_time. Updated again in 
[ab3d8e8](https://github.com/apache/nifi-minifi-cpp/pull/1311/commits/ab3d8e8c0c9ba81917b25cc6c4b2e2847a20ef3c).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to