Create testnet data dir if necessary
This commit is contained in:
parent
018e251cc0
commit
4a6eb0a016
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
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);
|
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);
|
std::string config = command_line::get_arg(vm, arg_config_file);
|
||||||
|
|
||||||
boost::filesystem::path data_dir_path(data_dir);
|
boost::filesystem::path data_dir_path(data_dir);
|
||||||
|
|
Loading…
Reference in a new issue