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


##########
extensions/standard-processors/processors/ListFile.cpp:
##########
@@ -234,18 +234,19 @@ void ListFile::onTrigger(const 
std::shared_ptr<core::ProcessContext> &context, c
   auto file_list = utils::file::FileUtils::list_dir_all(input_directory_, 
logger_, recurse_subdirectories_);
   for (const auto& [path, filename] : file_list) {
     ListedFile listed_file;
-    listed_file.absolute_path = (std::filesystem::path(path) / 
filename).string();
+    listed_file.full_file_path = (std::filesystem::path(path) / 
filename).string();
+    listed_file.absolute_path = path + utils::file::FileUtils::get_separator();

Review Comment:
   I don't think absolute_path has to end with a separator.



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