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

Function AbsPathForConfigVal

src/common/config.cpp:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240fs::path AbsPathForConfigVal(const ArgsManager& args, const fs::path& path, bool net_specific)
241{
242 if (path.is_absolute() || path.empty()) {
243 return path;
244 }
245 return fsbridge::AbsPathJoin(net_specific ? args.GetDataDirNet() : args.GetDataDirBase(), path);
246}

Callers 6

GetPidFileFunction · 0.85
SetLoggingOptionsFunction · 0.85
GetAuthCookieFileFunction · 0.85
loadtxoutsetFunction · 0.85
InitConfigFunction · 0.85
ReadConfigFilesMethod · 0.85

Calls 4

AbsPathJoinFunction · 0.85
GetDataDirNetMethod · 0.80
GetDataDirBaseMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected