mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
create all subdirectories for non-case sensitive systems
This commit is contained in:
parent
c82ef1ee8f
commit
ef3ec33ba3
2 changed files with 8 additions and 9 deletions
|
@ -57,7 +57,7 @@ namespace data
|
|||
for (int i = 0; i < 64; i++)
|
||||
{
|
||||
auto path1 = path / (std::string ("p") + chars[i]);
|
||||
if (!boost::filesystem::create_directory (path1))
|
||||
if (!boost::filesystem::exists (path1) && !boost::filesystem::create_directory (path1))
|
||||
{
|
||||
LogPrint (eLogError, "Failed to create directory ", path1);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue