From 1d1ea9f0962a331c21a3029a0302e5906a396f56 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Wed, 22 Feb 2017 18:10:00 +0900 Subject: Turn TryCreateDirectory() into TryCreateDirectories() Use case: TryCreateDirectory(GetDataDir() / "blocks" / "index") would fail if the blocks directory was not explicitly created before. The line that did so was in a weird location and could be removed as a result. --- src/wallet/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/db.cpp') diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 25f6bdd9d9..4573be8b23 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -75,7 +75,7 @@ bool CDBEnv::Open(const fs::path& pathIn) strPath = pathIn.string(); fs::path pathLogDir = pathIn / "database"; - TryCreateDirectory(pathLogDir); + TryCreateDirectories(pathLogDir); fs::path pathErrorFile = pathIn / "db.log"; LogPrintf("CDBEnv::Open: LogDir=%s ErrorFile=%s\n", pathLogDir.string(), pathErrorFile.string()); -- cgit v1.2.3