MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetSettingsPath

Method GetSettingsPath

src/common/args.cpp:438–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438bool ArgsManager::GetSettingsPath(fs::path* filepath, bool temp, bool backup) const
439{
440 fs::path settings = GetPathArg("-settings", BITCOIN_SETTINGS_FILENAME);
441 if (settings.empty()) {
442 return false;
443 }
444 if (backup) {
445 settings += ".bak";
446 }
447 if (filepath) {
448 *filepath = fsbridge::AbsPathJoin(GetDataDirNet(), temp ? settings + ".tmp" : settings);
449 }
450 return true;
451}
452
453static void SaveErrors(const std::vector<std::string> errors, std::vector<std::string>* error_out)
454{

Callers 2

createOptionsModelMethod · 0.80
InitConfigFunction · 0.80

Calls 2

AbsPathJoinFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected