mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Create parent directories if needed in GetDataDir
One-line change. Fixes #2752.
This commit is contained in:
@@ -1071,7 +1071,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;
|
||||
|
||||
Reference in New Issue
Block a user