From a60290aaebd09a371d377cb86cad338c561a079b Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sat, 17 Jan 2015 19:08:40 -0600 Subject: [PATCH] Creating directories to working path. --- rai/cli/daemon.cpp | 1 + rai/landing/entry.cpp | 1 + rai/qt_wallet/entry.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/rai/cli/daemon.cpp b/rai/cli/daemon.cpp index 5aa16a5fea..461abe5d2e 100644 --- a/rai/cli/daemon.cpp +++ b/rai/cli/daemon.cpp @@ -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 ()); diff --git a/rai/landing/entry.cpp b/rai/landing/entry.cpp index 259de4e3c7..8f096d6b7b 100644 --- a/rai/landing/entry.cpp +++ b/rai/landing/entry.cpp @@ -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) diff --git a/rai/qt_wallet/entry.cpp b/rai/qt_wallet/entry.cpp index 206f0fc396..84d6d81734 100644 --- a/rai/qt_wallet/entry.cpp +++ b/rai/qt_wallet/entry.cpp @@ -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 ());