fix: return 404 for missing WebDAV delete target

This commit is contained in:
OpenClaw Agent
2026-09-21 20:08:34 +08:00
parent 72fa23b588
commit 0a1799ba82
+3
View File
@@ -1210,6 +1210,9 @@ func (f *webdavAuthFS) Move(ctx context.Context, name, dest string, opts *webdav
func (f *webdavAuthFS) checkTree(ctx context.Context, name string, p auth.PermMask) error {
info, err := f.inner.Stat(ctx, name)
if err != nil {
if os.IsNotExist(err) {
return webdav.NewHTTPError(http.StatusNotFound, err)
}
return err
}
if !info.IsDir {