MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / tryCreateDirectories

Function tryCreateDirectories

src/Daemon/BaseDaemon.cpp:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100static bool tryCreateDirectories(Poco::Logger * logger, const std::string & path)
101{
102 try
103 {
104 fs::create_directories(path);
105 return true;
106 }
107 catch (...)
108 {
109 LOG_WARNING(logger, "{}: when creating {}, {}", __PRETTY_FUNCTION__, path, getCurrentExceptionMessage(true));
110 }
111 return false;
112}
113
114
115void BaseDaemon::loadConfiguration()

Callers 1

initializeMethod · 0.85

Calls 1

Tested by

no test coverage detected