Xuanwo commented on code in PR #3023:
URL: 
https://github.com/apache/incubator-opendal/pull/3023#discussion_r1328246189


##########
core/src/services/fs/backend.rs:
##########
@@ -367,15 +372,23 @@ impl Accessor for FsBackend {
             let target_path = Self::ensure_write_abs_path(&self.root, 
path).await?;
             let tmp_path =
                 Self::ensure_write_abs_path(atomic_write_dir, 
&tmp_file_of(path)).await?;
-            (target_path, Some(tmp_path))
+
+            // If the target file exists, we should append to the end of it 
directly.
+            if tokio::fs::try_exists(&target_path)

Review Comment:
   This should happen if args.append is true.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to