aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.cpp
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-09-08 18:33:17 -0400
committerRiccardo Spagni <ric@spagni.net>2014-09-15 15:54:24 +0200
commit4a6eb0a0166670cb21f58ac6f19fbb0300574ab2 (patch)
tree3327045d4701472206cd7367b20f676c65811131 /src/daemon/daemon.cpp
parentSeparate testnet default data dir (diff)
downloadmonero-4a6eb0a0166670cb21f58ac6f19fbb0300574ab2.tar.xz
Create testnet data dir if necessary
Diffstat (limited to 'src/daemon/daemon.cpp')
-rw-r--r--src/daemon/daemon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp
index 9102e61e8..fd1b18356 100644
--- a/src/daemon/daemon.cpp
+++ b/src/daemon/daemon.cpp
@@ -166,6 +166,7 @@ int main(int argc, char* argv[])
auto data_dir_arg = testnet_mode ? command_line::arg_testnet_data_dir : command_line::arg_data_dir;
std::string data_dir = command_line::get_arg(vm, data_dir_arg);
+ tools::create_directories_if_necessary(data_dir);
std::string config = command_line::get_arg(vm, arg_config_file);
boost::filesystem::path data_dir_path(data_dir);