Create testnet data dir if necessary

This commit is contained in:
Zachary Michaels 2014-09-08 18:33:17 -04:00 committed by Riccardo Spagni
parent 018e251cc0
commit 4a6eb0a016
1 changed files with 1 additions and 0 deletions

View File

@ -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);