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

Function PathFromString

src/fs.h:135–142  ·  view source on GitHub ↗

* Convert byte string to path object. Inverse of \ref PathToString. */

Source from the content-addressed store, hash-verified

133 * Convert byte string to path object. Inverse of \ref PathToString.
134 */
135static inline path PathFromString(const std::string& string)
136{
137#ifdef WIN32
138 return u8path(string);
139#else
140 return std::filesystem::path(string);
141#endif
142}
143
144/**
145 * Create directory (and if necessary its parents), unless the leaf directory

Callers 15

protocolinfo_cbMethod · 0.85
GetPidFileFunction · 0.85
AppInitMainFunction · 0.85
SetLoggingOptionsFunction · 0.85
OpenMethod · 0.85
CloseMethod · 0.85
OpenMethod · 0.85
FlushMethod · 0.85
BackupMethod · 0.85
ExecuteWalletToolFuncFunction · 0.85
DirectoryMethod · 0.85
MakeWalletDatabaseFunction · 0.85

Calls 1

pathClass · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68