MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / validHome

Function validHome

main/MainHelper.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78#endif
79
80bool validHome(const std::string &home_path) {
81 struct stat stat_result { };
82 const std::string properties_file_path = utils::file::FileUtils::concat_path(home_path, DEFAULT_NIFI_PROPERTIES_FILE);
83 return stat(properties_file_path.c_str(), &stat_result) == 0;
84}
85
86void setSyslogLogger() {
87 std::shared_ptr<logging::LoggerProperties> service_logger = std::make_shared<logging::LoggerProperties>();

Callers 1

determineMinifiHomeFunction · 0.85

Calls 3

c_strMethod · 0.80
statClass · 0.70
concat_pathFunction · 0.50

Tested by

no test coverage detected