diff options
author | Kyohei Uto <im@kyoheiu.dev> | 2024-01-14 05:42:22 +0900 |
---|---|---|
committer | Kyohei Uto <im@kyoheiu.dev> | 2024-01-14 05:42:22 +0900 |
commit | b2b97ff56216bfae6c524f40363c4d98745798ae (patch) | |
tree | 5edb6cb969f42560a11241af9d9614dd35aa6356 | |
parent | e6ef21c4570b55b681d10814daf8b3078c65e6bc (diff) |
Open target file if exists
-rw-r--r-- | src/run.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), |