mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
Merge pull request #2754 from laanwj/2013_06_create_data_dir
Create parent directories if needed in GetDataDir
This commit is contained in:
commit
a743522216
@ -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…
x
Reference in New Issue
Block a user