mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
Custom datadir + cleanup
This commit is contained in:
parent
56f1f627ef
commit
2fd31c6c8d
3 changed files with 19 additions and 20 deletions
11
i2p.cpp
11
i2p.cpp
|
@ -24,16 +24,7 @@ int main( int argc, char* argv[] )
|
|||
#endif
|
||||
|
||||
LogPrint("\n\n\n\ni2pd starting\n");
|
||||
LogPrint("default data directory: ", i2p::util::filesystem::GetDefaultDataDir().string());
|
||||
if (!boost::filesystem::exists( i2p::util::filesystem::GetDefaultDataDir() ))
|
||||
{
|
||||
// Create data directory
|
||||
if (!boost::filesystem::create_directory( i2p::util::filesystem::GetDefaultDataDir() ))
|
||||
{
|
||||
LogPrint("Failed to create data directory, exiting! :(");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
LogPrint("data directory: ", i2p::util::filesystem::GetDataDir().string());
|
||||
i2p::util::filesystem::ReadConfigFile(i2p::util::config::mapArgs, i2p::util::config::mapMultiArgs);
|
||||
|
||||
//TODO: This is an ugly workaround. fix it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue