mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-18 03:19:18 +00:00
Create parent directories if needed in GetDataDir
One-line change. Fixes #2752.
This commit is contained in:
parent
96896a0ece
commit
138705a173
@ -1084,7 +1084,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
||||
if (fNetSpecific && GetBoolArg("-testnet", false))
|
||||
path /= "testnet3";
|
||||
|
||||
fs::create_directory(path);
|
||||
fs::create_directories(path);
|
||||
|
||||
fCachedPath[fNetSpecific] = true;
|
||||
return path;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user