fgerlits commented on code in PR #1993:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1993#discussion_r2297543442
##########
libminifi/src/core/repository/FileSystemRepository.cpp:
##########
@@ -17,19 +17,22 @@
*/
#include "core/repository/FileSystemRepository.h"
-#include <string>
+
#include <filesystem>
+#include <string>
+
+#include "core/ForwardingContentSession.h"
#include "io/FileStream.h"
+#include "utils/Locations.h"
#include "utils/file/FileUtils.h"
-#include "core/ForwardingContentSession.h"
namespace org::apache::nifi::minifi::core::repository {
bool FileSystemRepository::initialize(const std::shared_ptr<Configure>&
configuration) {
if (std::string directory_str;
configuration->get(Configure::nifi_dbcontent_repository_directory_default,
directory_str) && !directory_str.empty()) {
directory_ = directory_str;
} else {
- directory_ = configuration->getHome().string();
+ directory_ = utils::getMinifiDir();
Review Comment:
On Windows, this needs a `.string()` as before. Or (better) `directory_`
could be changed from a `string` to a `path`, but that may snowball into too
many changes.
--
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]