AbsPathForConfigVal

Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute.

Synopsis

Declared in <common/args.h>

fs::path
AbsPathForConfigVal(
    ArgsManager const& args,
    fs::path const& path,
    bool net_specific = true);

Return Value

The normalized path.

Parameters

NameDescription
argsParsed arguments and settings.
pathThe path to be conditionally prefixed with datadir.
net_specificUse network specific datadir variant