-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(fs): full support webdav cross-driver copy and move #823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
j2rong4cn
commented
Jul 24, 2025
- close [BUG] WebDAV 跨驱动复制报错 500 #822
server/webdav/file.go
Outdated
if err == nil { | ||
srcName := path.Base(src) | ||
dstName := path.Base(dst) | ||
if srcName != dstName { | ||
err = fs.Rename(ctx, path.Join(dstDir, srcName), dstName) | ||
} | ||
} |
There was a problem hiding this comment.
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,再重命名呢🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外是不是所有的复制都存在这个问题,貌似是个设计上的缺陷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外是不是所有的复制都存在这个问题,貌似是个设计上的缺陷
想明白了,有些网盘的复制应该就是这样的,不支持复制时改名
de1be5f
to
61c5dfc
Compare
* fix(fs): restore webdav cross-driver copy and move * fix bug * webdav支持复制、移动 文件夹 * 优化 * 。