aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-06-09 01:06:11 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2013-06-09 01:06:11 -0700
commita743522216842bf76658deaad550c5cfaed1b814 (patch)
tree3055edf92b955eeccaa8e6e802666a61997a4e1c
parent122e9f8ba4b403fbefe20740d7d030a1eec6795f (diff)
parent3e9c8bab54371364f8e70c3b44e732c593b43a76 (diff)
Merge pull request #2754 from laanwj/2013_06_create_data_dir
Create parent directories if needed in GetDataDir
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 0bd2960233..2f1f522a61 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -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;