mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
Use ArgsManager::GetPathArg() for "-walletdir" option
This commit is contained in:
@@ -13,7 +13,7 @@ fs::path GetWalletDir()
|
||||
fs::path path;
|
||||
|
||||
if (gArgs.IsArgSet("-walletdir")) {
|
||||
path = fs::PathFromString(gArgs.GetArg("-walletdir", ""));
|
||||
path = gArgs.GetPathArg("-walletdir");
|
||||
if (!fs::is_directory(path)) {
|
||||
// If the path specified doesn't exist, we return the deliberately
|
||||
// invalid empty string.
|
||||
|
||||
Reference in New Issue
Block a user