Skip to content

Commit

Permalink
Creating directories to working path.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Jan 18, 2015
1 parent 99d6911 commit a60290a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions rai/cli/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ rai_daemon::daemon::daemon ()
void rai_daemon::daemon::run ()
{
auto working (rai::working_path ());
boost::filesystem::create_directories (working);
auto config_error (false);
rai_daemon::daemon_config config;
auto config_path ((working / "config.json").string ());
Expand Down
1 change: 1 addition & 0 deletions rai/landing/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ namespace landing
int main (int argc, char * const * argv)
{
auto working (rai::working_path ());
boost::filesystem::create_directories (working);
auto config_error (false);
rai::landing::config config (rai::landing::read_config (config_error, working));
if (!config_error)
Expand Down
1 change: 1 addition & 0 deletions rai/qt_wallet/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class qt_wallet_config
int main (int argc, char * const * argv)
{
auto working (rai::working_path ());
boost::filesystem::create_directories (working);
auto config_error (false);
qt_wallet_config config;
auto config_path ((working / "config.json").string ());
Expand Down

0 comments on commit a60290a

Please sign in to comment.