Skip to content

Conversation

j2rong4cn
Copy link
Member

@j2rong4cn j2rong4cn changed the title fix(fs): restore webdav cross-driver copy and move feat(fs): full support webdav cross-driver copy and move Jul 25, 2025
Comment on lines 67 to 73
if err == nil {
srcName := path.Base(src)
dstName := path.Base(dst)
if srcName != dstName {
err = fs.Rename(ctx, path.Join(dstDir, srcName), dstName)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

这样会不会有个问题,假如现在 dst 里面已经有了 a.zip,然后我给一个 src/a.zip 复制到 dst/b.zip,那是不是就会覆盖掉 dst/a.zip,再重命名呢🤔

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
Member

Choose a reason for hiding this comment

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

另外是不是所有的复制都存在这个问题,貌似是个设计上的缺陷

想明白了,有些网盘的复制应该就是这样的,不支持复制时改名

@j2rong4cn j2rong4cn force-pushed the fix/webdav-transfer branch from de1be5f to 61c5dfc Compare July 25, 2025 16:25
@j2rong4cn j2rong4cn merged commit 4e9c30f into OpenListTeam:main Jul 25, 2025
20 checks passed
@j2rong4cn j2rong4cn deleted the fix/webdav-transfer branch July 25, 2025 16:34
Suyunmeng pushed a commit that referenced this pull request Jul 30, 2025
* fix(fs): restore webdav cross-driver copy and move

* fix bug

* webdav支持复制、移动 文件夹

* 优化

* 。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] WebDAV 跨驱动复制报错 500
3 participants