mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 22:35:51 +01:00
Create parent directories if needed in GetDataDir
One-line change. Fixes #2752.
This commit is contained in:
parent
122e9f8ba4
commit
3e9c8bab54
@ -1071,7 +1071,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
|||||||
if (fNetSpecific && GetBoolArg("-testnet", false))
|
if (fNetSpecific && GetBoolArg("-testnet", false))
|
||||||
path /= "testnet3";
|
path /= "testnet3";
|
||||||
|
|
||||||
fs::create_directory(path);
|
fs::create_directories(path);
|
||||||
|
|
||||||
fCachedPath[fNetSpecific] = true;
|
fCachedPath[fNetSpecific] = true;
|
||||||
return path;
|
return path;
|
||||||
|
Loading…
Reference in New Issue
Block a user