fgerlits commented on code in PR #1409:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1409#discussion_r963854386


##########
extensions/sftp/processors/ListSFTP.cpp:
##########
@@ -186,7 +186,7 @@ ListSFTP::Child::Child(const std::string& parent_path_, 
std::tuple<std::string /
 }
 
 std::string ListSFTP::Child::getPath() const {
-  return utils::file::FileUtils::concat_path(parent_path, filename, true 
/*force_posix*/);
+  return utils::StringUtils::join_pack(parent_path, "/", filename);

Review Comment:
   This is not used for files, only for URLs, so I wouldn't put it in 
`FileUtils`.  I can add a `makeUrl()` function in `StringUtils` (or maybe a new 
`UrlUtils`) which joins its argument with '/'s.  I think that would be less 
explicit, but it may be more readable.



-- 
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