diff --git a/src/util.cpp b/src/util.cpp index 0bd296023..2f1f522a6 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;