szaszm commented on a change in pull request #875:
URL: https://github.com/apache/nifi-minifi-cpp/pull/875#discussion_r498122682
##########
File path: libminifi/src/utils/file/PathUtils.cpp
##########
@@ -84,13 +86,58 @@ std::string PathUtils::getFullPath(const std::string& path)
{
#endif
}
-std::string PathUtils::globToRegex(std::string glob) {
+std::string globToRegex(std::string glob) {
utils::StringUtils::replaceAll(glob, ".", "\\.");
utils::StringUtils::replaceAll(glob, "*", ".*");
utils::StringUtils::replaceAll(glob, "?", ".");
return glob;
}
+space_info space(const path p, std::error_code& ec) noexcept {
Review comment:
I'm not a fan of trailing underscores unless really necessary, so I went
with `path` and let them clash. Let me know if you're fine with this approach.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]