mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Use ArgsManager::GetPathArg() for "-blocksdir" option
This commit is contained in:
parent
15b632bf16
commit
06fed4c21e
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ const fs::path& ArgsManager::GetBlocksDirPath() const
|
|||
if (!path.empty()) return path;
|
||||
|
||||
if (IsArgSet("-blocksdir")) {
|
||||
path = fs::absolute(fs::PathFromString(GetArg("-blocksdir", "")));
|
||||
path = fs::absolute(GetPathArg("-blocksdir"));
|
||||
if (!fs::is_directory(path)) {
|
||||
path = "";
|
||||
return path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue