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

Method GetPathArg

src/util/system.cpp:387–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387fs::path ArgsManager::GetPathArg(std::string pathlike_arg) const
388{
389 auto result = fs::PathFromString(GetArg(pathlike_arg, "")).lexically_normal();
390 // Remove trailing slash, if present.
391 return result.has_filename() ? result : result.parent_path();
392}
393
394const fs::path& ArgsManager::GetBlocksDirPath() const
395{

Callers 6

AppInitMainFunction · 0.80
GetWalletDirFunction · 0.80
VerifyWalletsFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
CheckDataDirOptionFunction · 0.80

Calls 1

PathFromStringFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64