mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Create missing directories on the way
This commit is contained in:
2
FS.cpp
2
FS.cpp
@@ -108,7 +108,7 @@ namespace fs {
|
|||||||
|
|
||||||
bool HashedStorage::Init(const char * chars, size_t count) {
|
bool HashedStorage::Init(const char * chars, size_t count) {
|
||||||
if (!boost::filesystem::exists(root)) {
|
if (!boost::filesystem::exists(root)) {
|
||||||
boost::filesystem::create_directory(root);
|
boost::filesystem::create_directories(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < count; i++) {
|
for (size_t i = 0; i < count; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user