Skip to content

Commit

Permalink
Create file if new for unpacker
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Jan 17, 2024
1 parent 12fb4c9 commit e60992b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcommands/unpack_vromf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ fn parse_and_write_one_vromf(
}

fs::create_dir_all(joined_final_path.parent().ok_or(CliError::InvalidPath)?)?;
let handle = OpenOptions::new().write(true).open(&joined_final_path)?;
let handle = OpenOptions::new().write(true).create_new(true).open(&joined_final_path)?;
Ok(BufWriter::with_capacity(4096, handle))
}
};
Expand Down

0 comments on commit e60992b

Please sign in to comment.