Skip to content

Commit

Permalink
Fix --file failing if the out dir do not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rajesh-rahul committed Apr 5, 2022
1 parent 0499ba4 commit c4ca9b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datfile_parser/src/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fn main() {
let battle = parse_datfile(path_object, &parser).unwrap();
let output_file_name = format!("{}.json", &battle.arena_unique_id);

std::fs::create_dir_all(&cli.out_dir).unwrap();
let output_path = format!("{}/{}", &cli.out_dir, &output_file_name);
write_battle(battle, &output_path);

Expand Down

0 comments on commit c4ca9b0

Please sign in to comment.