diff options
author | Zachary Michaels <mikezackles@gmail.com> | 2014-09-08 18:33:17 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 15:54:24 +0200 |
commit | 4a6eb0a0166670cb21f58ac6f19fbb0300574ab2 (patch) | |
tree | 3327045d4701472206cd7367b20f676c65811131 | |
parent | Separate testnet default data dir (diff) | |
download | monero-4a6eb0a0166670cb21f58ac6f19fbb0300574ab2.tar.xz |
Create testnet data dir if necessary
-rw-r--r-- | src/daemon/daemon.cpp | 1 |
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); |