mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 14:53:27 +01:00
db_bdb: create all needed directories, not just the leaf one
This commit is contained in:
parent
f141869cac
commit
015b68a2be
@ -759,7 +759,7 @@ void BlockchainBDB::open(const std::string& filename, const int db_flags)
|
|||||||
}
|
}
|
||||||
else
|
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()));
|
throw0(DB_OPEN_FAILURE(std::string("Failed to create directory ").append(filename).c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user