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

Function createDirectory

src/Daemon/BaseDaemon.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89
90static std::string createDirectory(const std::string & file)
91{
92 fs::path path = fs::path(file).parent_path();
93 if (path.empty())
94 return "";
95 fs::create_directories(path);
96 return path;
97}
98
99
100static bool tryCreateDirectories(Poco::Logger * logger, const std::string & path)

Callers 1

initializeMethod · 0.70

Calls 2

parent_pathMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected