Skip to content

Commit

Permalink
Open target file if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoheiu committed Jan 13, 2024
1 parent e6ef21c commit b2b97ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ fn _run(mut state: State, session_path: PathBuf) -> Result<(), FxError> {
if let Some(target_path) = &state.choosefiles_target {
match std::fs::File::options()
.append(true)
.create_new(true)
.create(true)
.open(target_path)
{
Err(e) => print_warning(e, state.layout.y),
Expand Down

0 comments on commit b2b97ff

Please sign in to comment.