MCPcopy Create free account
hub / github.com/ElementsProject/elements / create_directories

Function create_directories

src/fs.h:150–156  ·  view source on GitHub ↗

* Create directory (and if necessary its parents), unless the leaf directory * already exists or is a symlink to an existing directory. * This is a temporary workaround for an issue in libstdc++ that has been fixed * upstream [PR101510]. */

Source from the content-addressed store, hash-verified

148 * upstream [PR101510].
149 */
150static inline bool create_directories(const std::filesystem::path& p)
151{
152 if (std::filesystem::is_symlink(p) && std::filesystem::is_directory(p)) {
153 return false;
154 }
155 return std::filesystem::create_directories(p);
156}
157
158/**
159 * This variant is not used. Delete it to prevent it from accidentally working

Callers 13

OpenMethod · 0.85
CaptureMessageToFileFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BasicTestingSetupMethod · 0.85
SetStartOnSystemStartupFunction · 0.85
appTestsMethod · 0.85
CoinStatsIndexMethod · 0.85
BlockFilterIndexMethod · 0.85
system.cppFile · 0.85

Calls

no outgoing calls

Tested by 6

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BasicTestingSetupMethod · 0.68
appTestsMethod · 0.68