From 3e9c8bab54371364f8e70c3b44e732c593b43a76 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sat, 8 Jun 2013 10:03:23 +0200 Subject: Create parent directories if needed in GetDataDir One-line change. Fixes #2752. --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.cpp') 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; -- cgit v1.2.3