mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 22:28:52 +00:00
db_lmdb: create all needed directories, not just the leaf one
This commit is contained in:
parent
015b68a2be
commit
1494557633
@ -943,7 +943,7 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!boost::filesystem::create_directory(direc))
|
||||
if (!boost::filesystem::create_directories(direc))
|
||||
throw0(DB_OPEN_FAILURE(std::string("Failed to create directory ").append(filename).c_str()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user