From ae4a72236b9b6c83eafe9d2ab948f83a1e8c9dfe Mon Sep 17 00:00:00 2001 From: Andrey Smorodov Date: Sun, 30 Oct 2016 21:23:00 +0300 Subject: [PATCH] Update lmdb++.h DB folder was not created, while opening DB in msvc2015 in windows. --- lmdb++.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lmdb++.h b/lmdb++.h index ab75f8c..1b08486 100644 --- a/lmdb++.h +++ b/lmdb++.h @@ -1194,6 +1194,11 @@ class lmdb::env { env& open(const char* const path, const unsigned int flags = default_flags, const mode mode = default_mode) { +#if defined(_MSC_VER) +#if defined(_WIN32) + CreateDirectory(path, NULL); +#endif +#endif lmdb::env_open(handle(), path, flags, mode); return *this; }