Browse Source

Create parent directories if needed in GetDataDir

One-line change. Fixes #2752.
0.8
Wladimir J. van der Laan 12 years ago committed by Warren Togami
parent
commit
7bc8d0d22a
  1. 2
      src/util.cpp

2
src/util.cpp

@ -1085,7 +1085,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…
Cancel
Save