Browse Source

Create parent directories if needed in GetDataDir

One-line change. Fixes #2752.
miguelfreitas
Wladimir J. van der Laan 12 years ago
parent
commit
3e9c8bab54
  1. 2
      src/util.cpp

2
src/util.cpp

@ -1071,7 +1071,7 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) @@ -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;

Loading…
Cancel
Save