summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyohei Uto <im@kyoheiu.dev>2024-01-14 05:42:22 +0900
committerKyohei Uto <im@kyoheiu.dev>2024-01-14 05:42:22 +0900
commitb2b97ff56216bfae6c524f40363c4d98745798ae (patch)
tree5edb6cb969f42560a11241af9d9614dd35aa6356
parente6ef21c4570b55b681d10814daf8b3078c65e6bc (diff)
Open target file if exists
-rw-r--r--src/run.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index 76b552f..c89ce4a 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -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),