diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-06-08 10:03:23 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-06-08 10:03:23 +0200 |
commit | 3e9c8bab54371364f8e70c3b44e732c593b43a76 (patch) | |
tree | 3055edf92b955eeccaa8e6e802666a61997a4e1c /src | |
parent | 122e9f8ba4b403fbefe20740d7d030a1eec6795f (diff) |
Create parent directories if needed in GetDataDir
One-line change. Fixes #2752.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 2 |
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; |