Xuanwo commented on code in PR #6326:
URL: https://github.com/apache/opendal/pull/6326#discussion_r2160225042
##########
core/src/services/fs/core.rs:
##########
@@ -119,9 +119,12 @@ impl FsCore {
) -> Result<(PathBuf, Option<PathBuf>)> {
if let Some(atomic_write_dir) = &self.atomic_write_dir {
let target_path = self.ensure_write_abs_path(&self.root,
path).await?;
- let tmp_path = self
- .ensure_write_abs_path(atomic_write_dir,
&build_tmp_path_of(path))
- .await?;
+ let path = if op.if_not_exists() {
+ target_path.to_string_lossy().to_string()
Review Comment:
cc @kingsword09, after giving it some thought, I realize the current
behavior isn't what I expected.
--
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]