Skip to content

Conversation

@Ironboxplus
Copy link
Contributor

@Ironboxplus Ironboxplus commented Jan 2, 2026

fix #1878

描述

修复的问题

在执行文件传输任务(TaskType == merge)时,如果目标目录(dstActualPath)在目标存储中尚未创建,原代码会直接调用 op.List。这会导致程序返回错误 failed list dst [...] objs 并中断任务,无法正常完成首次同步或跨存储同步。

Comment on lines -195 to -197
if err != nil {
return errors.WithMessagef(err, "failed list dst [%s] objs", dstActualPath)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得只删掉这三行就行了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接删的话后面会报错吧

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

报什么

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

报什么

看错了,好像不会报

@Ironboxplus Ironboxplus changed the title fix(fs): 优化文件传输合并逻辑,处理目标目录不存在的情况 fix(fs): handle non-existent destination directory in file transfer Jan 2, 2026
@KirCute KirCute added bug Module: Filesystem File-system operations related issue/PR labels Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Module: Filesystem File-system operations related issue/PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 如果选择"仅复制新文件和新文件夹",会导致当不存在目标文件夹时复制失败

2 participants