From 7bc8d0d22a8e0a021bb5d931da2041c3e2a0748d Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sat, 8 Jun 2013 10:03:23 +0200 Subject: [PATCH] Create parent directories if needed in GetDataDir One-line change. Fixes #2752. --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index e81657a1c..8de786bdb 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1085,7 +1085,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;