mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Use ArgsManager::GetPathArg() for "-walletdir" option
This commit is contained in:
parent
06fed4c21e
commit
ecd094e2b1
3 changed files with 6 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ bool VerifyWallets(WalletContext& context)
|
|||
ArgsManager& args = *Assert(context.args);
|
||||
|
||||
if (args.IsArgSet("-walletdir")) {
|
||||
fs::path wallet_dir = fs::PathFromString(args.GetArg("-walletdir", ""));
|
||||
const fs::path wallet_dir{args.GetPathArg("-walletdir")};
|
||||
std::error_code error;
|
||||
// The canonical path cleans the path, preventing >1 Berkeley environment instances for the same directory
|
||||
// It also lets the fs::exists and fs::is_directory checks below pass on windows, since they return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue